-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreloader.css
62 lines (59 loc) · 1.3 KB
/
preloader.css
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* ini: Preloader */
#preloader {
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background-color:#001eff; /* cor do background que vai ocupar o body */
z-index:999; /* z-index para jogar para frente e sobrepor tudo */
}
#preloader .inner {
position: absolute;
top: 50%; /* centralizar a parte interna do preload (onde fica a animação)*/
left: 50%;
transform: translate(-50%, -50%);
}
.bolas > div {
display: inline-block;
background-color: #fff;
width: 25px;
height: 25px;
border-radius: 100%;
margin: 3px;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
animation-name: animarBola;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.bolas > div:nth-child(1) {
animation-duration:0.75s ;
animation-delay: 0;
}
.bolas > div:nth-child(2) {
animation-duration: 0.75s ;
animation-delay: 0.12s;
}
.bolas > div:nth-child(3) {
animation-duration: 0.75s ;
animation-delay: 0.24s;
}
@keyframes animarBola {
0% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
16% {
-webkit-transform: scale(0.1);
transform: scale(0.1);
opacity: 0.7;
}
33% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
}
/* end: Preloader */