-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.css
57 lines (55 loc) · 1.09 KB
/
1.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
#up_f {
background-color: rgb(207, 206, 206);
position: absolute;
height: 4px;
width: 720px;
top: 20px;
}
#down_f {
background-color: rgb(207, 206, 206);
position: absolute;
height: 4px;
width: 720px;
top: 170px;
}
#frame {
position: relative;
width: 100%;
}
#block {
background-color: rgb(135, 228, 152);
position: absolute;
height: 80px;
width: 160px;
top: 55px;
border-radius: 30px;
animation-name: sport;
animation-duration: 5s;
animation-timing-function: ease;
animation-fill-mode: forward;
animation-iteration-count: infinite;
z-index: 2;
text-align: center;
}
@keyframes sport {
0% {
left: 0;
transform: rotate(0deg);
background-color: aquamarine;
}
40% {
left: 0;
transform: rotate(20deg);
background-color: chartreuse;
}
75% {
left: 720px;
transform: rotate(0deg);
background-color: chocolate;
}
100% {
left: 0;
transform: rotate(-180deg);
background-color: aquamarine;
}
}