"preloader"
Bootstrap 4.0.0 Snippet by Shakibur22

1
2
3
4
5
6
7
8
9
10
11
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="wrapper">
<div class="up"></div>
<div class="loading"></div>
<div class="down"></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
body,
html {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
.wrapper {
width: 100%;
height: 100%;
}
.loading {
margin: 10% auto;
border-top: 6px solid #1abc9c;
width: 125px;
position: absolute;
margin: 0 auto;
left: 0;
right: 0;
top: 50%;
z-index: 9999;
}
.spin {
-webkit-animation: spin 1s infinite linear;
-moz-animation: spin 2s infinite linear;
-ms-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
animation: spin 1s infinite linear;
}
@keyframes "spin" {
from {
-webkit-transform: rotate(0deg);
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
$(window).load(function() {
$(".loading").addClass("spin");
setTimeout(function() {
var currentPositon = $(".loading").css("transform");
console.log(currentPositon)
$(".loading").addClass("class").css("transform", currentPositon).css("transform", "none")
$(".loading").animate({
}, 500, function() {
increaseWidth();
});
}, 1985);
function increaseWidth() {
$(".loading").animate({
width: "+=100%",
}, 2500, function() {
slide();
removeLine();
moveTextRight();
moveTextLeft();
});
}
function removeLine() {
$(".loading").animate({
width: "0%",
}, 2500, function() {});
}
function goUp() {
$(".up").show();
$(".up").animate({
top: "-=50%"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: