-
Notifications
You must be signed in to change notification settings - Fork 0
/
水波纹动画.html
71 lines (60 loc) · 1.04 KB
/
水波纹动画.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
html {
font-size: 20px;
}
body {
background: #444;
}
@keyframes opac {
from {
opacity: 1;
width: 0;
height: 0;
top: 50%;
left: 50%;
border: 3px solid #fff;
}
to {
opacity: 0;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid #fff;
}
}
.animate .w2 {
animation-delay: 1s;
}
.animate .w3 {
animation-delay: 2s;
}
.animate .w4 {
animation-delay: 3s;
}
.wave {
width: 90px;
height: 90px;
position: absolute;
}
.wave * {
position: absolute;
border-radius: 50%;
animation: opac 4s infinite;
}
</style>
</head>
<body>
<div class="animate wave">
<div class="w1"></div>
<div class="w2"></div>
<div class="w3"></div>
<div class="w4"></div>
</div>
</body>
</html>