@duskmoon-dev/css-art 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/art/atom.css +184 -0
- package/dist/art/eclipse.css +79 -0
- package/dist/art/index.css +1271 -0
- package/dist/art/moon.css +89 -0
- package/dist/art/mountain.css +112 -0
- package/dist/art/plasma-ball.css +662 -0
- package/dist/art/snow.css +38 -0
- package/dist/art/sun.css +99 -0
- package/dist/index.css +1281 -0
- package/dist/index.min.css +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@layer css-art {
|
|
2
|
+
.art-atom {
|
|
3
|
+
--art-atom-size: 360px;
|
|
4
|
+
--art-atom-color: #00d8ff;
|
|
5
|
+
--art-atom-nucleus-size: calc(var(--art-atom-size) / 5);
|
|
6
|
+
--art-atom-electron-color: #99f8ff;
|
|
7
|
+
--art-atom-electron-size: calc(var(--art-atom-size) / 25);
|
|
8
|
+
--art-atom-orbit-size: calc(var(--art-atom-size) / 2.5);
|
|
9
|
+
--art-atom-speed: 1.2s;
|
|
10
|
+
--art-atom-speed-alpha: 1s;
|
|
11
|
+
--art-atom-speed-omega: .8s;
|
|
12
|
+
|
|
13
|
+
position: relative;
|
|
14
|
+
width: var(--art-atom-size);
|
|
15
|
+
height: var(--art-atom-size);
|
|
16
|
+
animation: 8s art-atom-rotate infinite cubic-bezier(1, .25, 0, .75);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
|
|
20
|
+
*, *:before, *::after {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Nucleus */
|
|
25
|
+
&::before {
|
|
26
|
+
content: '';
|
|
27
|
+
display: block;
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 50%;
|
|
30
|
+
left: 50%;
|
|
31
|
+
width: var(--art-atom-nucleus-size);
|
|
32
|
+
height: var(--art-atom-nucleus-size);
|
|
33
|
+
margin-top: calc(var(--art-atom-nucleus-size) / -2);
|
|
34
|
+
margin-left: calc(var(--art-atom-nucleus-size) / -2);
|
|
35
|
+
background: color-mix(in srgb, var(--art-atom-color) 70%, transparent);
|
|
36
|
+
border-radius: 100%;
|
|
37
|
+
box-shadow: 0 0 3px 0 color-mix(in srgb, var(--art-atom-color) 70%, transparent);
|
|
38
|
+
animation: 2s art-atom-nucleus infinite cubic-bezier(.65, 0, .35, 1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Electron orbits */
|
|
42
|
+
& > [class^="electron"] {
|
|
43
|
+
border-top: solid color-mix(in srgb, var(--art-atom-color) 50%, transparent) 1px;
|
|
44
|
+
border-right: solid color-mix(in srgb, var(--art-atom-color) 35%, transparent) 2px;
|
|
45
|
+
border-bottom: solid color-mix(in srgb, var(--art-atom-color) 20%, transparent) 4px;
|
|
46
|
+
border-left: solid color-mix(in srgb, var(--art-atom-color) 0%, transparent) 2px;
|
|
47
|
+
border-radius: 100%;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: var(--art-atom-orbit-size);
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 50%;
|
|
52
|
+
margin-top: calc(var(--art-atom-orbit-size) / -2);
|
|
53
|
+
animation: var(--art-atom-speed) art-atom-electron-orbit infinite linear;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& > .electron-alpha {
|
|
57
|
+
transform: rotate(60deg);
|
|
58
|
+
animation: var(--art-atom-speed-alpha) art-atom-electron-orbit infinite linear;
|
|
59
|
+
}
|
|
60
|
+
& > .electron-omega {
|
|
61
|
+
transform: rotate(-60deg);
|
|
62
|
+
animation: var(--art-atom-speed-omega) art-atom-electron-orbit infinite linear;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Electron particles */
|
|
66
|
+
[class^="electron"]::after {
|
|
67
|
+
content: '';
|
|
68
|
+
display: block;
|
|
69
|
+
width: var(--art-atom-electron-size);
|
|
70
|
+
height: var(--art-atom-electron-size);
|
|
71
|
+
background: var(--art-atom-electron-color);
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
margin-top: calc(var(--art-atom-electron-size) / -2);
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 50%;
|
|
76
|
+
left: calc(var(--art-atom-electron-size) / -1);
|
|
77
|
+
transform: scale(1);
|
|
78
|
+
animation: calc(var(--art-atom-speed) * 2) art-atom-electron infinite ease-in-out;
|
|
79
|
+
}
|
|
80
|
+
.electron-alpha::after { animation: calc(var(--art-atom-speed-alpha) * 2) art-atom-electron infinite ease-in-out; }
|
|
81
|
+
.electron-omega::after { animation: calc(var(--art-atom-speed-omega) * 2) art-atom-electron infinite ease-in-out; }
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Size variants */
|
|
85
|
+
.art-atom-sm {
|
|
86
|
+
--art-atom-size: 180px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.art-atom-lg {
|
|
90
|
+
--art-atom-size: 480px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@keyframes art-atom-electron-orbit {
|
|
94
|
+
0% {
|
|
95
|
+
border-top: solid color-mix(in srgb, var(--art-atom-color) 50%, transparent) 1px;
|
|
96
|
+
border-right: solid color-mix(in srgb, var(--art-atom-color) 35%, transparent) 2px;
|
|
97
|
+
border-bottom: solid color-mix(in srgb, var(--art-atom-color) 20%, transparent) 4px;
|
|
98
|
+
border-left: solid color-mix(in srgb, var(--art-atom-color) 0%, transparent) 2px;
|
|
99
|
+
}
|
|
100
|
+
25% {
|
|
101
|
+
border-top: solid color-mix(in srgb, var(--art-atom-color) 35%, transparent) 1px;
|
|
102
|
+
border-right: solid color-mix(in srgb, var(--art-atom-color) 20%, transparent) 2px;
|
|
103
|
+
border-bottom: solid color-mix(in srgb, var(--art-atom-color) 0%, transparent) 4px;
|
|
104
|
+
border-left: solid color-mix(in srgb, var(--art-atom-color) 50%, transparent) 2px;
|
|
105
|
+
}
|
|
106
|
+
50% {
|
|
107
|
+
border-top: solid color-mix(in srgb, var(--art-atom-color) 20%, transparent) 1px;
|
|
108
|
+
border-right: solid color-mix(in srgb, var(--art-atom-color) 0%, transparent) 2px;
|
|
109
|
+
border-bottom: solid color-mix(in srgb, var(--art-atom-color) 50%, transparent) 4px;
|
|
110
|
+
border-left: solid color-mix(in srgb, var(--art-atom-color) 35%, transparent) 2px;
|
|
111
|
+
}
|
|
112
|
+
75% {
|
|
113
|
+
border-top: solid color-mix(in srgb, var(--art-atom-color) 0%, transparent) 1px;
|
|
114
|
+
border-right: solid color-mix(in srgb, var(--art-atom-color) 50%, transparent) 2px;
|
|
115
|
+
border-bottom: solid color-mix(in srgb, var(--art-atom-color) 35%, transparent) 4px;
|
|
116
|
+
border-left: solid color-mix(in srgb, var(--art-atom-color) 20%, transparent) 2px;
|
|
117
|
+
}
|
|
118
|
+
100% {
|
|
119
|
+
border-top: solid color-mix(in srgb, var(--art-atom-color) 50%, transparent) 1px;
|
|
120
|
+
border-right: solid color-mix(in srgb, var(--art-atom-color) 35%, transparent) 2px;
|
|
121
|
+
border-bottom: solid color-mix(in srgb, var(--art-atom-color) 20%, transparent) 4px;
|
|
122
|
+
border-left: solid color-mix(in srgb, var(--art-atom-color) 0%, transparent) 2px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes art-atom-rotate {
|
|
127
|
+
0% { transform: rotate(0deg) scale(1); }
|
|
128
|
+
12.5% { transform: rotate(-45deg) scale(.9); }
|
|
129
|
+
25% { transform: rotate(-90deg) scale(1); }
|
|
130
|
+
37.5% { transform: rotate(-135deg) scale(.9); }
|
|
131
|
+
50% { transform: rotate(-180deg) scale(1); }
|
|
132
|
+
62.5% { transform: rotate(-225deg) scale(.9); }
|
|
133
|
+
75% { transform: rotate(-270deg) scale(1); }
|
|
134
|
+
87.5% { transform: rotate(-315deg) scale(.9); }
|
|
135
|
+
100% { transform: rotate(-360deg) scale(1); }
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@keyframes art-atom-nucleus {
|
|
139
|
+
0% { transform: scale(1); }
|
|
140
|
+
25% { transform: scale(.9); }
|
|
141
|
+
50% { transform: scale(1); }
|
|
142
|
+
75% { transform: scale(.85); }
|
|
143
|
+
100% { transform: scale(1); }
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@keyframes art-atom-electron {
|
|
147
|
+
0% {
|
|
148
|
+
left: calc(var(--art-atom-electron-size) / -1);
|
|
149
|
+
transform: scale(1);
|
|
150
|
+
}
|
|
151
|
+
12.5% {
|
|
152
|
+
top: 100%;
|
|
153
|
+
transform: scale(1.5);
|
|
154
|
+
}
|
|
155
|
+
25% {
|
|
156
|
+
left: 100%;
|
|
157
|
+
transform: scale(1);
|
|
158
|
+
}
|
|
159
|
+
37.5% {
|
|
160
|
+
top: 0%;
|
|
161
|
+
transform: scale(.25);
|
|
162
|
+
}
|
|
163
|
+
50% {
|
|
164
|
+
left: calc(var(--art-atom-electron-size) / -1);
|
|
165
|
+
transform: scale(1);
|
|
166
|
+
}
|
|
167
|
+
62.5% {
|
|
168
|
+
top: 100%;
|
|
169
|
+
transform: scale(1.5);
|
|
170
|
+
}
|
|
171
|
+
75% {
|
|
172
|
+
left: 100%;
|
|
173
|
+
transform: scale(1);
|
|
174
|
+
}
|
|
175
|
+
87.5% {
|
|
176
|
+
top: 0%;
|
|
177
|
+
transform: scale(.25);
|
|
178
|
+
}
|
|
179
|
+
100% {
|
|
180
|
+
left: calc(var(--art-atom-electron-size) / -1);
|
|
181
|
+
transform: scale(1);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@layer css-art {
|
|
2
|
+
.art-eclipse {
|
|
3
|
+
--art-eclipse-bg: #09090b;
|
|
4
|
+
--art-eclipse-size: 600px;
|
|
5
|
+
|
|
6
|
+
width: var(--art-eclipse-size);
|
|
7
|
+
height: var(--art-eclipse-size);
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
.layer {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.layer-1 {
|
|
17
|
+
animation: 30s linear art-eclipse-rotate infinite;
|
|
18
|
+
transform-origin: 66% 40%;
|
|
19
|
+
background:
|
|
20
|
+
repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,248,176,0.46) 3.96%, rgba(69,168,255,0) 8.33%, rgba(69,168,255,0) 8.33%) 69.5% 37.7% / 17.2% 17.2% no-repeat,
|
|
21
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,248,176,1) 0%, rgba(69,168,255,0) 47.22%) 74.1% 35.6% / 33.6% 36.6% no-repeat;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.layer-2 {
|
|
25
|
+
animation: 20s linear art-eclipse-rotate infinite reverse;
|
|
26
|
+
transform-origin: 66% 40%;
|
|
27
|
+
background:
|
|
28
|
+
radial-gradient(ellipse at 50% 50%, rgba(69,168,255,0) 20%, var(--art-eclipse-bg) 29%) 77.4% 33.8% / 40% 40% no-repeat,
|
|
29
|
+
repeating-conic-gradient(from 15deg at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,248,176,0.51) 2.64%, rgba(69,168,255,0) 5.56%, rgba(69,168,255,0) 5.56%) 69.5% 37.7% / 17.2% 17.2% no-repeat;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.layer-3 {
|
|
33
|
+
animation: 20s linear art-eclipse-rotate infinite;
|
|
34
|
+
background:
|
|
35
|
+
repeating-conic-gradient(from 355deg at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,198,69,0.26) 8.1%, rgba(69,168,255,0) 16.67%, rgba(69,168,255,0) 16.67%) 0 0 / 100% 100% no-repeat;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.layer-4 {
|
|
39
|
+
animation: 40s linear art-eclipse-rotate infinite reverse;
|
|
40
|
+
background:
|
|
41
|
+
repeating-conic-gradient(from 355deg at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,198,69,0.26) 2.86%, rgba(69,168,255,0) 5.88%, rgba(69,168,255,0) 5.88%) 0% 0% / 100% 100% no-repeat;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.layer-5 {
|
|
45
|
+
animation: 40s linear art-eclipse-rotate infinite;
|
|
46
|
+
background:
|
|
47
|
+
repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,198,69,0.26) 6.62%, rgba(69,168,255,0) 7.69%, rgba(69,168,255,0) 7.69%) 0% 0% / 100% 100% no-repeat;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.layer-6 {
|
|
51
|
+
background:
|
|
52
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,248,176,0.27) 0%, rgba(69,168,255,0) 63.54%) 67% 39.3% / 5.8% 5.8% no-repeat,
|
|
53
|
+
radial-gradient(ellipse at 50% 50%, rgba(69,168,255,0) 40.28%, rgba(255,183,163,0.05) 52.43%, rgba(69,168,255,0) 63.54%) 68% 38.6% / 13% 13% no-repeat,
|
|
54
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,248,176,0.55) 0%, rgba(69,168,255,0) 63.54%) 66.9% 39.3% / 3.4% 3.4% no-repeat,
|
|
55
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,248,176,0.2) 0%, rgba(69,168,255,0) 66.67%) 70.7% 36.5% / 25.6% 25.6% no-repeat,
|
|
56
|
+
radial-gradient(ellipse at 50% 50%, var(--art-eclipse-bg) 26%, rgba(69,168,255,0) 26.4%) 0% 0% / 100% 100% no-repeat,
|
|
57
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,212,148,0.04) 0%, rgba(69,168,255,0) 69.79%) 0% 0% / 100% 100% no-repeat,
|
|
58
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,240,148,0.11) 0%, rgba(69,168,255,0) 52.43%) 0% 0% / 100% 100% no-repeat,
|
|
59
|
+
radial-gradient(ellipse at 51% 49%, rgba(69,168,255,0) 23.96%, var(--art-eclipse-bg) 40.63%) 0% 0% / 100% 100% no-repeat,
|
|
60
|
+
repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,239,69,0.14) 11.04%, rgba(69,168,255,0) 20%, rgba(69,168,255,0) 20%) 0% 0% / 100% 100% no-repeat,
|
|
61
|
+
radial-gradient(ellipse at 52% 48%, rgba(69,168,255,0) 23.96%, var(--art-eclipse-bg) 34.03%) 0% 0% / 100% 100% no-repeat,
|
|
62
|
+
radial-gradient(ellipse at 50% 50%, rgba(255,185,147,0.29) 28%, rgba(69,168,255,0) 30%) 0% 0% / 100% 100% no-repeat;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Size variants */
|
|
67
|
+
.art-eclipse-sm {
|
|
68
|
+
--art-eclipse-size: 300px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.art-eclipse-lg {
|
|
72
|
+
--art-eclipse-size: 800px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes art-eclipse-rotate {
|
|
76
|
+
from { transform: rotate(0deg); }
|
|
77
|
+
to { transform: rotate(360deg); }
|
|
78
|
+
}
|
|
79
|
+
}
|