forked from Anuragcoderealy/Codenewhacktober
-
Notifications
You must be signed in to change notification settings - Fork 0
/
animations.html
104 lines (98 loc) · 2.18 KB
/
animations.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.loading {
justify-content: center;
display: flex;
}
.loading::after {
content: "";
animation: loading 6s ease-in-out infinite;
width: 100px;
height: 100px;
border-radius: 50%;
border: 10px solid rgb(247, 233, 233);
border-top-color: green;
}
@keyframes loading {
to {
transform: rotate(1turn);
}
}
.contain {
margin: 70px auto;
width: 100px;
}
.dot {
width: 15px;
height: 15px;
border-radius: 50%;
display: inline-block;
}
.one {
background-color: indianred;
animation: jump 0.6s 0.1s linear infinite;
}
.two {
background-color: lawngreen;
animation: jump 0.6s 0.2s linear infinite;
}
.three {
background-color: lightseagreen;
animation: jump 0.6s 0.3s linear infinite;
}
@keyframes jump {
50% {
transform: translate(0, 15px);
}
}
.boxer {
width: 100px;
margin: 70px auto;
}
.box {
width: 20px;
height: 20px;
background-color: maroon;
display: inline-block;
animation: pulse 4s linear infinite;
}
.on {
animation-delay: 1s;
}
.tw {
animation-delay: 1.5s;
}
.th {
animation-delay: 2s;
}
.fo {
animation-delay: 2.5s;
}
@keyframes pulse {
to {
opacity: 0;
}
}
</style>
</head>
<body>
<div class="loading"></div>
<div class="contain">
<div class="dot one"></div>
<div class="dot two"></div>
<div class="dot three"></div>
</div>
<div class="boxer">
<div class="box on"></div>
<div class="box tw"></div>
<div class="box th"></div>
<div class="box fo"></div>
</div>
</body>
</html>