Repository navigation
Expand file tree
/
Copy pathinterlace.css
More file actions
executable file
·74 lines (66 loc) · 1.63 KB
/
Copy pathinterlace.css
File metadata and controls
executable file
·74 lines (66 loc) · 1.63 KB
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
[data-interlace] {
position: relative;
overflow: hidden;
}
[data-interlace] img {
display: block;
top: 0;
width: 100%;
height: 100%;
}
[data-interlace] img:first-of-type {
z-index: -1;
}
[data-interlace=loaded] img:first-of-type {
position: absolute;
}
[data-interlace] img + img {
position: absolute;
opacity: 0;
-webkit-transition-duration: 500ms;
transition-duration: 500ms;
-webkit-transition-property: opacity;
transition-property: opacity;
}
[data-interlace=loaded] img + img {
position: static;
opacity: 1;
}
[data-interlace=loading]::after {
position: absolute;
display: block;
margin-top: -10px;
margin-left: -10px;
width: 20px;
height: 20px;
top: 50%;
left: 50%;
bottom: 50%;
right: 50%;
border-radius: 10px;
content: '';
-webkit-box-shadow: 0 1px 0 0 rgba(200, 200, 200, 0.8);
box-shadow: 0 1px 0 0 rgba(200, 200, 200, 0.8);
-webkit-animation: interlace-load-anim 600ms linear infinite;
animation: interlace-load-anim 600ms linear infinite;
}
@-webkit-keyframes interlace-load-anim {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes interlace-load-anim {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}