Skip to content

Commit 66ffd4e

Browse files
committed
fix: ui scrolling issue
1 parent a993d7f commit 66ffd4e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

public/index.html

+12-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
display: flex;
1515
justify-content: center;
1616
align-items: center;
17-
overflow: hidden;
1817
}
1918
.container {
2019
background: rgba(255, 255, 255, 0.1);
@@ -79,6 +78,16 @@
7978
border-color: #ffa07a;
8079
box-shadow: 0 0 10px #ffa07a;
8180
}
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+
}
8291
</style>
8392
<script>
8493
function validateChallenge() {
@@ -121,6 +130,7 @@
121130
</script>
122131
</head>
123132
<body>
133+
<div id="snowflakes"></div>
124134
<div class="container">
125135
<h1>🎅 Crypto Christmas Challenge 🎁</h1>
126136

@@ -181,7 +191,7 @@ <h3>Magic Funds</h3>
181191

182192
<script>
183193
function createSnowflakes() {
184-
const container = document.body;
194+
const container = document.getElementById("snowflakes");
185195
for (let i = 0; i < 50; i++) {
186196
const snowflake = document.createElement("div");
187197
snowflake.classList.add("snowflake");

0 commit comments

Comments
 (0)