Neon Progress - 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>Neon Progress</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #000; margin: 0; font-family: 'Arial', sans-serif; } .progress-container { position: relative; width: 200px; height: 200px; } .progress { position: relative; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient( #39ff14 0%, #39ff14 var(--progress), #000 var(--progress) ); display: flex; justify-content: center; align-items: center; box-shadow: 0 0 20px #39ff14; animation: pulse 1s infinite; } .progress::before { content: ''; position: absolute; width: 90%; height: 90%; background: #000; border-radius: 50%; } @keyframes pulse { 0% { box-shadow: 0 0 20px #39ff14; } 50% { box-shadow: 0 0 30px #39ff14; } 100% { box-shadow: 0 0 20px #39ff14; } } </style> </head> <body> <div class="progress-container"> <div class="progress" style="--progress: 85%;"></div> </div> <script> const progressElement = document.querySelector('.progress'); let progress = 0; function updateProgress() { progress += 1; if (progress > 100) progress = 0; progressElement.style.setProperty('--progress', `${progress}%`); requestAnimationFrame(updateProgress); } requestAnimationFrame(updateProgress); </script> </body> </html>