-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path020.水滴动画.html
103 lines (87 loc) · 2.37 KB
/
020.水滴动画.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
<!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">
<link rel="stylesheet" href="./assets/global.css">
<style>
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #000;
flex-direction: column;
filter: contrast(30);
}
.drop {
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
filter: blur(20px);
background-color: #fff;
opacity: 0;
animation: 2.5s drop linear infinite;
}
.drop:nth-child(2) {
transform: translateY(-80px);
animation-delay: .5s;
}
.drop:nth-child(3) {
transform: translateY(-130px);
animation-delay: .7s;
}
.collection {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #fff;
filter: blur(20px);
animation: 3s collection linear infinite;
}
span {
position: absolute;
font-style: 30px;
}
@keyframes drop {
0% {
transform: scale(.7) translateY(-600%);
opacity: 0;
}
50% {
transform: scale(.4) translateY(-8%);
opacity: 1;
}
100% {
transform: scale(.3) translateY(0%);
opacity: 1;
}
}
@keyframes collection {
0% {
transform: scale(1) rotate(0deg)
}
50% {
transform: scale(1.3) rotate(180deg);
width: 90px;
border-top-left-radius: 40%;
border-bottom-right-radius: 45%;
}
100% {
transform: scale(1) rotate(360deg);
}
}
</style>
</head>
<body>
<div class="container">
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="collection"></div>
<span>80%</span>
</div>
</body>
</html>