-
Notifications
You must be signed in to change notification settings - Fork 0
/
shimmer.css
83 lines (72 loc) · 1.33 KB
/
shimmer.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.shimmer-line {
height: 10px;
margin-top: 20px;
background: #777;
}
.shimmer-line-br {
border-radius: 8px;
}
.shimmer-line-full {
width: 100%;
}
.shimmer-line-80 {
width: 80%;
}
.shimmer-line-60 {
width: 60%;
}
.shimmer-line-40 {
width: 40%;
}
.shimmer-line-20 {
width: 20%;
}
.shimmer-line-10 {
width: 10%;
}
.shimmer-circle {
background: #777;
border-radius: 50%;
}
.shimmer-circle-lg {
height: 129px;
width: 129px;
}
.shimmer-circle-md {
height: 65px;
width: 65px;
}
.shimmer-circle-sm {
height: 33px;
width: 33px;
}
.shimmer-circle-x-sm {
height: 17px;
width: 17px;
}
.shimmer-wrapper {
width:100%;
height:100%;
animation: shimmer-full-view 0.5s forwards cubic-bezier(0.250, 0.460, 0.450, 0.940);
}
@keyframes shimmer-full-view {
0% {
background-position: -1000px 0;
}
100% {
background-position: 1000px 0;
}
}
@keyframes shimmer-animation {
0% {
background-position: -1000px 0;
}
100% {
background-position: 1000px 0;
}
}
.shimmer-animate {
animation : shimmer-animation 2s infinite linear;
background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%);
background-size: 1000px 100%;
}