Html codes
184 subscribers
111 photos
15 videos
226 files
197 links
👋 Welcome to Html Codee
🚀 Here you’ll find mini tools, code snippets, and web tricks to grow fast.
🧩 Built with HTML, PHP, and smart ideas.
💌 Support: support@bestpage.x10.mx
🏁 If you don't walk today, run tomorrow.
Download Telegram
`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Year Countdown with Snow Globe</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #1e1e1e, #000);
overflow: hidden;
color: white;
}

.container {
text-align: center;
}

.timer-title {
font-size: 2rem;
margin-bottom: 20px;
color: #f9f9f9;
}

.timer {
display: flex;
gap: 15px;
justify-content: center;
margin-bottom: 40px;
}

.time {
text-align: center;
}

.time span {
display: block;
font-size: 3rem;
background: linear-gradient(135deg, #ccc, #888);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow:
0 1px 2px #999,
0 2px 4px #888,
0 3px 6px #777,
0 4px 8px #666,
0 5px 10px #555;
}

.time small {
font-size: 1rem;
text-transform: uppercase;
color: #aaa;
}

.snow-globe {
position: relative;
width: 300px;
height: 300px;
margin: 0 auto;
background: radial-gradient(circle at 50% 60%, #e6f7ff, #80bfff);
border-radius: 50%;
border: 8px solid silver;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5), inset 0 4px 8px rgba(255, 255, 255, 0.2);
overflow: hidden;
}

.snow-globe .scene {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: flex-end;
}

.snow-globe .scene h1 {
font-size: 1.5rem;
color: white;
text-shadow: 0 2px 4px #000;
margin-bottom: 30px;
}

.base {
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
width: 180px;
height: 60px;
background: linear-gradient(to bottom, #999, #666);
border-radius: 0 0 20px 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.2);
}

.snow {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}

.snow span {
position: absolute;
top: -10px;
width: 8px;
height: 8px;
background: white;
border-radius: 50%;
animation: fall linear infinite;
opacity: 0.8;
}

@keyframes fall {
0% {
transform: translateY(0) translateX(0);
opacity: 1;
}
100% {
transform: translateY(300px) translateX(calc(-50px + 100px * random));
opacity: 0;
}
}
</style>
</head>
<body>
<div class="container">
<h1 class="timer-title">New Year Countdown</h1>
<div class="timer">
<div class="time">
<span id="days">00</span>
<small>Days</small>
</div>
<div class="time">
<span id="hours">00</span>
<small>Hours</small>
</div>
<div class="time">
<span id="minutes">00</span>
<small>Minutes</small>
</div>
<div class="time">
<span id="seconds">00</span>
<small>Seconds</small>
</div>
</div>
<div class="snow-globe">
<div class="snow"></div>
<div class="scene">
<h1>Happy New Year!</h1>
</div>
<div class="base"></div>
</div>
</div>

<script>
// Countdown Timer
const daysEl = document.getElementById('days');
const hoursEl = document.getElementById('hours');
const minutesEl = document.getElementById('minutes');
const secondsEl = document.getElementById('seconds');

function updateCountdown() {
const newYear = new Date('January 1, 2025 00:00:00').getTime();
const now = new Date().getTime();
const timeDifference = newYear - now;