-
Notifications
You must be signed in to change notification settings - Fork 0
/
index3.html
116 lines (100 loc) · 2.69 KB
/
index3.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
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Animation Assignment</title>
<style>
.background {
width: 600px;
height: 600px;
margin: 0 auto;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #050210;
}
.circle1 {
position: relative;
width: 300px;
height: 300px;
border: solid 10px black;
background: linear-gradient(#fb5dad, #55fb9f, #b97aff);
border-radius: 50%;
animation: circle1 1s linear infinite;
}
@keyframes circle1 {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg)
}
}
.circle1::after {
content: '';
position: absolute;
top: 20px;
right: 20px;
left: 20px;
bottom: 20px;
border-radius: 50%;
background-color: #050210;
}
.circle1 span {
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(#fb5dad, #55fb9f, #b97aff);
border-radius: 50%;
}
.circle1 span:nth-child(1) {
filter: blur(5px);
}
.circle1 span:nth-child(2) {
filter: blur(10px);
}
.circle1 span:nth-child(3) {
filter: blur(20px);
}
.circle1 span:nth-child(4) {
filter: blur(55px);
}
.circle2 {
width: 50%;
height: 50%;
z-index: 1;
margin: 0 auto;
position: fixed;
border-radius: 50%;
background: radial-gradient(#120a34 0px, #120a34 30px);
animation: circle2 1.1s linear infinite;
}
@keyframes circle2 {
0% {
transform: translate(50%, 50%) scale(0.1);
opacity: 1;
}
50% {
transform: translate(50%, 50%) scale(1);
opacity: 0.5;
}
100% {
transform: translate(50%, 50%) scale(2);
opacity: 0;
}
}
</style>
</head>
<body>
<div class="background">
<div class="circle1">
<span></span>
<span></span>
<span></span>
<span></span>
<div class="circle2">
</div>
</div>
</body>
</html>