File size: 3,117 Bytes
64aa32a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!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">
        <!-- Animation Controls -->
        <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>

        <!-- Number Display -->
        <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>

        <!-- Current Number Indicator -->
        <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>