|
|
<!DOCTYPE html> |
|
|
<html lang="en"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>Cinematic Countdown Canvas</title> |
|
|
<link rel="stylesheet" href="style.css"> |
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
|
|
<script src="https://unpkg.com/feather-icons"></script> |
|
|
</head> |
|
|
<body class="bg-black min-h-screen overflow-hidden"> |
|
|
<div id="app" class="relative w-full h-screen flex items-center justify-center"> |
|
|
|
|
|
<div class="absolute top-4 left-4 z-10 bg-black/70 backdrop-blur-sm rounded-lg p-4 text-white"> |
|
|
<h3 class="font-bold mb-2">Animation Controls</h3> |
|
|
<div class="space-y-2"> |
|
|
<select id="animationType" class="w-full bg-gray-800 text-white rounded px-2 py-1"> |
|
|
<option value="zoom">Zoom In with Shimmer</option> |
|
|
<option value="bounce">Pop-in Bounce</option> |
|
|
<option value="smoke">Smoke Reveal</option> |
|
|
<option value="glitch">Glitch Flicker</option> |
|
|
<option value="pulse">Energy Pulse</option> |
|
|
</select> |
|
|
<div class="flex gap-2"> |
|
|
<button id="prevNumber" class="flex-1 bg-red-600 hover:bg-red-700 text-white rounded px-2 py-1 transition-colors"> |
|
|
<i data-feather="chevron-left" class="w-4 h-4"></i> |
|
|
</button> |
|
|
<button id="nextNumber" class="flex-1 bg-red-600 hover:bg-red-700 text-white rounded px-2 py-1 transition-colors"> |
|
|
<i data-feather="chevron-right" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</div> |
|
|
<label class="flex items-center gap-2"> |
|
|
<input type="checkbox" id="loopAnimation" checked> |
|
|
<span class="text-sm">Loop Animation</span> |
|
|
</label> |
|
|
<button id="playPause" class="w-full bg-red-600 hover:bg-red-700 text-white rounded px-2 py-1 transition-colors"> |
|
|
Play/Pause |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="numberContainer" class="relative"> |
|
|
<div id="numberDisplay" class="cinematic-number text-9xl md:text-[20rem] font-black tracking-tighter"> |
|
|
1 |
|
|
</div> |
|
|
<div id="particles" class="absolute inset-0 pointer-events-none"></div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="absolute bottom-4 left-1/2 transform -translate-x-1/2 bg-black/70 backdrop-blur-sm rounded-full px-4 py-2 text-white text-sm"> |
|
|
Number <span id="currentNumber">1</span>/10 |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<script src="components/number-animations.js"></script> |
|
|
<script src="script.js"></script> |
|
|
<script> |
|
|
feather.replace(); |
|
|
</script> |
|
|
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> |
|
|
</body> |
|
|
</html> |