Futuristic Neon Time - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Futuristic Neon Time</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #000; font-family: 'Courier New', Courier, monospace; margin: 0; color: #00ff00; } .clock-container { text-align: center; animation: glow 1.5s infinite; } .time { font-size: 4em; text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; } .date { font-size: 1.5em; text-shadow: 0 0 10px #00ff00, 0 0 15px #00ff00; } @keyframes glow { 0%, 100% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; } 50% { text-shadow: 0 0 10px #00ff00, 0 0 15px #00ff00, 0 0 20px #00ff00; } } </style> </head> <body> <div class="clock-container"> <div class="time" id="time">--:--:--</div> <div class="date" id="date">-- -- ----</div> </div> <script> function updateTime() { const now = new Date(); const hours = String(now.getHours()).padStart(2, '0'); const minutes = String(now.getMinutes()).padStart(2, '0'); const seconds = String(now.getSeconds()).padStart(2, '0'); const day = String(now.getDate()).padStart(2, '0'); const month = String(now.getMonth() + 1).padStart(2, '0'); const year = now.getFullYear(); document.getElementById('time').textContent = `${hours}:${minutes}:${seconds}`; document.getElementById('date').textContent = `${day}-${month}-${year}`; } setInterval(updateTime, 1000); updateTime(); </script> </body> </html>