-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglowstyle.css
More file actions
68 lines (68 loc) · 1.52 KB
/
glowstyle.css
File metadata and controls
68 lines (68 loc) · 1.52 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
58
59
60
61
62
63
64
65
66
67
68
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
section {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #042104;
animation: animateColor 8s linear infinite;
}
@keyframes animateColor {
0% {
filter: hue-rotate(0deg);
} 100% {
filter: hue-rotate(360deg);
}
}
section .container {
display: flex;
}
section .container .circle {
position: relative;
width: 150px;
height:150px;
margin: 0 -7.5px;
}
section .container .circle span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: rotate(calc(18deg * var(--i)));
/* 360/20 = 18deg */
}
section .container .circle span::before {
content:'';
position: absolute;
right: 0px;
top: calc(50% - 7.5px);
width: 15px;
height: 15px;
background: #00ff0a;
border-radius: 50%;
box-shadow: 0 0 10px #00ff0a, 0 0 20px #00ff0a, 0 0 40px #00ff0a, 0 0 60px #00ff0a, 0 0 80px #00ff0a, 0 0 100px #00ff0a;
transform: scale(0.1);
animation: animate 4s linear infinite;
animation-delay: calc(0.1s * var(--i))
}
@keyframes animate {
0% {
transform: scale(1);
}
50%,100% {
transform: scale(0.1);
}
}
section .container .circle:nth-child(2) {
transform: rotate(-180deg);
}
section .container .circle:nth-child(2) span::before {
animation-delay: calc(-0.1s * var(--i));
}