-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathatomAnimation.css
More file actions
99 lines (89 loc) · 1.8 KB
/
atomAnimation.css
File metadata and controls
99 lines (89 loc) · 1.8 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
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: radial-gradient(#113, #000);
}
.atom {
position: relative;
display: flex;
width: 300px;
height: 300px;
align-items: center;
justify-content: center;
}
.atom::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
background: transparent;
box-shadow: inset 0 0 10px #fff;
border-radius: 50%;
}
.line {
width: 100%;
height: 100%;
position: absolute;
opacity: 0.7;
}
.line-1 {
--color: #40ff9c;
width: 100%;
height: 100%;
border-radius: 50%;
border-bottom: 10px solid var(--color);
border-top: 10px solid var(--color);
animation: line1 2s linear infinite;
filter:drop-shadow( 0 0 10px var(--color));
}
@keyframes line1 {
0% {
transform: rotateY(70deg) rotateZ(0deg);
}
100% {
transform: rotateY(70deg) rotateZ(360deg);
}
}
.line-2 {
--color: #0ff;
width: 100%;
height: 100%;
border-radius: 50%;
border-right: 10px solid var(--color);
border-left: 10px solid var(--color);
animation: line2 3s linear infinite;
filter:drop-shadow( 0 0 10px var(--color));
}
@keyframes line2 {
0% {
transform: rotateX(80deg) rotateY(25deg) rotateZ(0deg);
}
100% {
transform: rotateX(80deg) rotateY(25deg) rotateZ(360deg);
}
}
.line-3 {
--color: #c096ff;
width: 100%;
height: 100%;
border-radius: 50%;
border-right: 10px solid var(--color);
border-left: 10px solid var(--color);
animation: line3 3s linear infinite;
filter:drop-shadow( 0 0 10px var(--color));
}
@keyframes line3 {
0% {
transform: rotateX(-80deg) rotateY(25deg) rotateZ(0deg);
}
100% {
transform: rotateX(-80deg) rotateY(25deg) rotateZ(360deg);
}
}