-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-4.html
70 lines (55 loc) · 1.27 KB
/
index-4.html
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #262626;
}
.items {
width: 25px;
height: 100px;
background: red;
position: relative;
border-radius: 30px 0px 30px 0px;
animation: rotate 4s linear infinite;
}
.item1 {
top: 100px;
background: blue;
animation-delay: 0.5s;
}
.item2 {
background: green;
animation-delay: 1s;
}
.item3 {
top: -100px;
background: red;
animation-delay: 1.5s;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(360deg);
}
100% {
transform: rotate(0deg);
}
}
</style>
</head>
<body>
<div class="conatainer">
<div class="items item1"></div>
<div class="items item2"></div>
<div class="items item3"></div>
</div>
</body>
</html>