-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample_animation.html
More file actions
57 lines (57 loc) · 1.35 KB
/
Copy pathExample_animation.html
File metadata and controls
57 lines (57 loc) · 1.35 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
<!DOCTYPE html>
<html lang="kr">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
margin: 20px;
}
.loading span{
display: inline-block;
width: 40px;
height: 40px;
background-color: gray;
border-radius: 50%;
animation-name: ani;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.loading span:nth-child(1){
background-color: crimson;
animation-delay: 0.2s;
}
.loading span:nth-child(2){
background-color: dodgerblue;
animation-delay: 0.4s;
}
.loading span:nth-child(3){
background-color: blue;
animation-delay: 0.6s;
}
@keyframes ani{
0%{
transform: scale(1);
opacity: 1;
}
50%{
transform: scale(0.1);
opacity: 0.1;
}
100%{
transform: scale(1);
transform: rotate(180deg);
opacity: 0.5;
}
}
</style>
</head>
<body>
<div class="loading">
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>