Starburst Progressbar - 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>Starburst Progressbar</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364); font-family: 'Arial', sans-serif; } .progress-container { position: relative; width: 200px; height: 200px; } .progress-circle { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#ffd700 var(--progress), transparent 0); box-shadow: 0 0 20px #ffd700; animation: rotate 3s linear infinite; } .progress-circle:before { content: '⭐'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; animation: shimmer 2s infinite; } .progress-circle:after { content: attr(data-progress) '%'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; color: #fff; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes shimmer { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } </style> </head> <body> <div class="progress-container"> <div class="progress-circle" data-progress="0" style="--progress: 0;"></div> </div> <script> function updateProgress(progress) { const circle = document.querySelector('.progress-circle'); circle.setAttribute('data-progress', progress); circle.style.setProperty('--progress', progress + '%'); } let progress = 0; setInterval(() => { if (progress < 100) { progress += 1; updateProgress(progress); } }, 100); </script> </body> </html>