1
+ @import url ("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;1,500&display=swap" );
2
+ body {
3
+ background : linear-gradient (# 3800e7, # 8a15ff );
4
+ height : 100vh ;
5
+ font-size : calc (14px + (26 - 14 ) * ((100vw - 300px ) / (1600 - 300 )));
6
+ font-family : "DM Mono" , monospace;
7
+ font-weight : 300 ;
8
+ overflow : hidden;
9
+ color : white;
10
+ text-align : center;
11
+ }
12
+ h1 {
13
+ font-size : 3em ;
14
+ margin-bottom : 0.2em ;
15
+ }
16
+ h2 {
17
+ font-size : 2em ;
18
+ }
19
+ .main {
20
+ height : 100vh ;
21
+ display : flex;
22
+ flex-direction : column;
23
+ flex-wrap : wrap;
24
+ position : relative;
25
+ justify-content : center;
26
+ align-items : center;
27
+ }
28
+ .main : before , .main : after {
29
+ content : "" ;
30
+ display : block;
31
+ position : absolute;
32
+ z-index : -3 ;
33
+ }
34
+ .main : before {
35
+ right : 0 ;
36
+ bottom : -19 ;
37
+ height : 30em ;
38
+ width : 30em ;
39
+ border-radius : 30em ;
40
+ background : linear-gradient (# 3800e7, # 8a15ff );
41
+ align-self : flex-end;
42
+ animation : gradient-fade 8s ease-in-out 3s infinite alternate;
43
+ }
44
+ .main : after {
45
+ top : 0 ;
46
+ left : 30 ;
47
+ height : 10em ;
48
+ width : 10em ;
49
+ border-radius : 10em ;
50
+ background : linear-gradient (# 3800e7, # 8a15ff );
51
+ animation : gradient-fade-alt 6s ease-in-out 3s infinite alternate;
52
+ }
53
+ .main__text-wrapper {
54
+ position : relative;
55
+ padding : 2em ;
56
+ }
57
+ .main__text-wrapper : before , .main__text-wrapper : after {
58
+ content : "" ;
59
+ display : block;
60
+ position : absolute;
61
+ }
62
+ .main__text-wrapper : before {
63
+ z-index : -1 ;
64
+ top : -3em ;
65
+ right : -3em ;
66
+ width : 13em ;
67
+ height : 13em ;
68
+ opacity : 0.7 ;
69
+ border-radius : 13em ;
70
+ background : linear-gradient (# 15e0ff, # 8a15ff );
71
+ animation : rotation 7s linear infinite;
72
+ }
73
+ .main__text-wrapper : after {
74
+ z-index : -1 ;
75
+ bottom : -20em ;
76
+ width : 20em ;
77
+ height : 20em ;
78
+ border-radius : 20em ;
79
+ background : linear-gradient (# d000c5, # 8a15ff );
80
+ animation : rotation 7s linear infinite;
81
+ }
82
+ .arrow {
83
+ z-index : 1000 ;
84
+ opacity : 0.5 ;
85
+ position : absolute;
86
+ }
87
+ .arrow--top {
88
+ top : 0 ;
89
+ left : -5em ;
90
+ }
91
+ .arrow--bottom {
92
+ bottom : 0 ;
93
+ right : 3em ;
94
+ }
95
+ .circle {
96
+ transform : translate (50% , -50% ) rotate (0deg );
97
+ transform-origin : center;
98
+ }
99
+ .circle--ltblue {
100
+ height : 20em ;
101
+ width : 20em ;
102
+ border-radius : 20em ;
103
+ background : linear-gradient (# 15e0ff, # 3800e7 );
104
+ }
105
+ .backdrop {
106
+ position : absolute;
107
+ width : 100vw ;
108
+ height : 100vh ;
109
+ display : block;
110
+ background-color : pink;
111
+ }
112
+ .dotted-circle {
113
+ position : absolute;
114
+ top : 0 ;
115
+ right : 0 ;
116
+ opacity : 0.3 ;
117
+ animation : rotation 38s linear infinite;
118
+ }
119
+ .draw-in {
120
+ stroke-dasharray : 1000 ;
121
+ stroke-dashoffset : 1000 ;
122
+ animation : draw 15s ease-in-out alternate infinite;
123
+ }
124
+ @keyframes draw {
125
+ from {
126
+ stroke-dashoffset : 1000 ;
127
+ }
128
+ to {
129
+ stroke-dashoffset : 0 ;
130
+ }
131
+ }
132
+ .item-to {
133
+ animation-duration : 10s ;
134
+ animation-iteration-count : infinite;
135
+ transform-origin : bottom;
136
+ }
137
+ .bounce-1 {
138
+ animation-name : bounce-1;
139
+ animation-timing-function : ease;
140
+ }
141
+ .bounce-2 {
142
+ animation-name : bounce-2;
143
+ animation-timing-function : ease;
144
+ }
145
+ .bounce-3 {
146
+ animation-name : bounce-3;
147
+ animation-timing-function : ease;
148
+ }
149
+ @keyframes bounce-1 {
150
+ 0% {
151
+ transform : translateY (0 );
152
+ }
153
+ 50% {
154
+ transform : translateY (50px );
155
+ }
156
+ 100% {
157
+ transform : translateY (0 );
158
+ }
159
+ }
160
+ @keyframes bounce-2 {
161
+ 0% {
162
+ transform : translateY (0 );
163
+ }
164
+ 50% {
165
+ transform : translateY (-30px );
166
+ }
167
+ 100% {
168
+ transform : translateY (0 );
169
+ }
170
+ }
171
+ @keyframes bounce-3 {
172
+ 0% {
173
+ transform : translateY (0 );
174
+ }
175
+ 50% {
176
+ transform : translateY (30px );
177
+ }
178
+ 100% {
179
+ transform : translateY (0 );
180
+ }
181
+ }
182
+ @keyframes rotation {
183
+ from {
184
+ transform : rotate (0deg );
185
+ }
186
+ to {
187
+ transform : rotate (360deg );
188
+ }
189
+ }
190
+ @keyframes gradient-fade {
191
+ from {
192
+ transform : translate (10% , -10% ) rotate (0deg );
193
+ }
194
+ to {
195
+ transform : translate (50% , -50% ) rotate (360deg );
196
+ }
197
+ }
198
+ @keyframes gradient-fade-alt {
199
+ from {
200
+ transform : translate (-20% , 20% ) rotate (0deg );
201
+ }
202
+ to {
203
+ transform : translate (-60% , 60% ) rotate (360deg );
204
+ }
205
+ }
206
+
0 commit comments