-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrans-style.css
75 lines (72 loc) · 1.27 KB
/
trans-style.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
html,
body {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: #a0a0a0;
}
.container {
width: 320px;
height: 180px;
}
.container .color {
height: 30px;
}
.container .color div {
height: 30px;
width: 0;
}
.container .color .blue {
background: #5BCEFA;
animation-name: slide;
animation-duration: 2.5s;
animation-iteration-count: infinite;
}
.container .color .pink {
background: #F5A9B8;
animation-name: slide;
animation-duration: 2.5s;
animation-iteration-count: infinite;
animation-delay: 0.1s;
}
.container .color .white {
background: #ffffff;
animation-name: slide;
animation-duration: 2.5s;
animation-iteration-count: infinite;
animation-delay: 0.2s;
}
.container .color .pink2 {
background: #F5A9B8;
animation-name: slide;
animation-duration: 2.5s;
animation-iteration-count: infinite;
animation-delay: 0.3s;
}
.container .color .blue2 {
background: #5BCEFA;
animation-name: slide;
animation-duration: 2.5s;
animation-iteration-count: infinite;
animation-delay: 0.4s;
}
@keyframes slide {
10% {
width: 0;
float: left;
}
37% {
width: 100%;
float: left;
}
63% {
width: 100%;
float: right;
}
90% {
width: 0;
float: right;
}
}