-
Notifications
You must be signed in to change notification settings - Fork 2
/
shimmer.css
61 lines (60 loc) · 1.85 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
.shimmer {
text-align: center;
color: rgba(255,255,255,0.5);
background: -webkit-gradient(linear, left top, right top, from(#222222ee), to(#222222ee), color-stop(0.5, #ffffffee));
background: -moz-gradient(linear, left top, right top, from(#222222ee), to(#222222ee), color-stop(0.5, #ffffffee));
background: gradient(linear, left top, right top, from(#222222ee), to(#222222ee), color-stop(0.5, #ffffffee));
-webkit-background-size: 125px 100%;
-moz-background-size: 125px 100%;
background-size: 125px 100%;
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
-webkit-animation-name: shimmer;
-moz-animation-name: shimmer;
animation-name: shimmer;
-webkit-animation-duration: 6s;
-moz-animation-duration: 6s;
animation-duration: 6s;
/* -webkit-animation-direction: backwards; */
/* -moz-animation-direction: backwards; */
/* animation-direction: backwards; */
-webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
animation-iteration-count: infinite;
background-repeat: no-repeat;
background-position: 0 0;
background-color: #222;
}
/* @-moz-keyframes shimmer { */
/* 0% { */
/* background-position: top left; */
/* } */
/* 100% { */
/* background-position: top right; */
/* } */
/* } */
/* @-webkit-keyframes shimmer { */
/* 0% { */
/* background-position: top left; */
/* } */
/* 100% { */
/* background-position: top right; */
/* } */
/* } */
/* @-o-keyframes shimmer { */
/* 0% { */
/* background-position: top left; */
/* } */
/* 100% { */
/* background-position: top right; */
/* } */
/* } */
@keyframes shimmer {
0% {
background-position: 4400% 0%;
}
100% {
background-position: -200% 0% ;
}
}