-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4.html
62 lines (62 loc) · 1.63 KB
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dark Looping Background Animation</title>
<style>
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: #000;
}
.background {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
}
.circle {
fill: none;
stroke: #333;
stroke-width: 2;
animation: pulse 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.circle:nth-child(2) {
animation-delay: -1s;
}
.circle:nth-child(3) {
animation-delay: -2s;
}
.circle:nth-child(4) {
animation-delay: -3s;
}
@keyframes pulse {
0% {
transform: scale(0.8);
opacity: 0;
}
50% {
transform: scale(1.2);
opacity: 0.3;
}
100% {
transform: scale(0.8);
opacity: 0;
}
}
</style>
</head>
<body>
<svg class="background" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid slice">
<circle class="circle" cx="50" cy="50" r="20" />
<circle class="circle" cx="50" cy="50" r="35" />
<circle class="circle" cx="50" cy="50" r="50" />
<circle class="circle" cx="50" cy="50" r="65" />
</svg>
</body>
</html>