File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 14
14
display : flex;
15
15
justify-content : center;
16
16
align-items : center;
17
- overflow : hidden;
18
17
}
19
18
.container {
20
19
background : rgba (255 , 255 , 255 , 0.1 );
79
78
border-color : # ffa07a ;
80
79
box-shadow : 0 0 10px # ffa07a ;
81
80
}
81
+
82
+ # snowflakes {
83
+ position : fixed;
84
+ top : 0 ;
85
+ left : 0 ;
86
+ right : 0 ;
87
+ bottom : 0 ;
88
+ pointer-events : none;
89
+ z-index : -1 ;
90
+ }
82
91
</ style >
83
92
< script >
84
93
function validateChallenge ( ) {
121
130
</ script >
122
131
</ head >
123
132
< body >
133
+ < div id ="snowflakes "> </ div >
124
134
< div class ="container ">
125
135
< h1 > 🎅 Crypto Christmas Challenge 🎁</ h1 >
126
136
@@ -181,7 +191,7 @@ <h3>Magic Funds</h3>
181
191
182
192
< script >
183
193
function createSnowflakes ( ) {
184
- const container = document . body ;
194
+ const container = document . getElementById ( "snowflakes" ) ;
185
195
for ( let i = 0 ; i < 50 ; i ++ ) {
186
196
const snowflake = document . createElement ( "div" ) ;
187
197
snowflake . classList . add ( "snowflake" ) ;
You can’t perform that action at this time.
0 commit comments