-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeyframes.css
More file actions
73 lines (70 loc) · 1.32 KB
/
keyframes.css
File metadata and controls
73 lines (70 loc) · 1.32 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
body {
background: #333;
}
.box {
background: white;
width: 400px;
height: 400px;
position: relative;
animation-name: myanimation;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-fill-mode:forwards;
animation-delay: 2s;
animation-direction:alternate-reverse;
animation-timing-function: linear;
}
@keyframes myanimation {
0% {
background-color: white;
left: 0px;
top: 0px;
border-radius: 0 0 0 0;
}
25% {
background-color: red;
left: 300px;
top: 0px;
border-radius: 50% 0 0 0;
}
50% {
background-color: green;
left: 300px;
top: 300px;
border-radius: 50% 50% 0 0;
}
75% {
background-color: blue;
left: 0px;
top: 300px;
border-radius: 50% 50% 50% 0;
}
100% {
background-color: white;
left: 0px;
top: 0px;
border-radius: 50% 50% 50% 50%;
}
}
/* @keyframes myanimation {
0% {
background-color: white;
border-radius: 0 0 0 0;
}
25% {
background-color: red;
border-radius: 50% 0 0 0;
}
50% {
background-color: green;
border-radius: 50% 50% 0 0;
}
75% {
background-color: blue;
border-radius: 50% 50% 50% 0;
}
100% {
background-color: white;
border-radius: 50% 50% 50% 50%;
}
} */