"display loading"
Bootstrap 3.2.0 Snippet by bnk2972

1
2
3
4
5
6
7
8
9
10
11
12
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div id="overlay" class="open">
<div class="display-loading open"></div>
<div class="success-loading hide">
<span class="glyphicon glyphicon-ok"></span>
<label>Success</label>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.display-loading.open {
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid #000;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
margin:0 auto;
position: relative;
top: 47%;
}
.success-loading {
width: 120px;
height: 120px;
position: relative;
top: 47%;
margin:0 auto;
z-index: 2001;
background: rgba(0,0,0,.5);
border-radius: 8px;
text-align: center;
padding-top: 20px;
}
.success-loading> span {
font-size: 50px;
color: white;
display: block;
}
.success-loading> label {
color: white;
font-size: 24px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
$(document).ready(function() {
setTimeout(function() {
$(".display-loading").removeClass("open");
$(".success-loading").removeClass("hide");
setTimeout(function() {
$("#overlay").removeClass("open");
$(".success-loading").addClass("hide");
}, 2000);
}, 1000);
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: