Skip to content

Commit

Permalink
Disabled Snowflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
astrosander committed Dec 31, 2024
1 parent 3b3c2ff commit b338490
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,6 @@
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<script src="js/jquery-1.10.1.min.js"></script>
<style>
.snowflake {
position: fixed;
top: -10px;
z-index: 9999;
user-select: none;
pointer-events: none;
font-size: 1em;
color: white;
animation: fall linear infinite;
}

@keyframes fall {
0% {
transform: translateY(0);
}

100% {
transform: translateY(100vh);
}
}


.lightrope {
text-align: center;
white-space: nowrap;
Expand Down Expand Up @@ -1985,23 +1963,6 @@ <h4>Заключительный этап</h4>
}
</style>
<script>
function createSnowflake() {
const snowflake = document.createElement('div');
snowflake.classList.add('snowflake');
snowflake.textContent = '❄';
snowflake.style.left = Math.random() * window.innerWidth + 'px';
snowflake.style.animationDuration = Math.random() * 3 + 2 + 's';
snowflake.style.opacity = Math.random();
snowflake.style.fontSize = Math.random() * 10 + 10 + 'px';

document.body.appendChild(snowflake);

setTimeout(() => {
snowflake.remove();
}, 5000);
}

setInterval(createSnowflake, 100);
</script>
<div style="background-color: #ff0000; color: white; text-align: center; padding: 10px; font-size: 20px;">
🎄 Merry Christmas and Happy Holidays! 🎅
Expand Down

0 comments on commit b338490

Please sign in to comment.