Diamond Glow 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>Diamond Glow Progressbar</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: radial-gradient(circle, #3a3a3a, #000000); 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(#1e90ff var(--progress), transparent 0); box-shadow: 0 0 15px #1e90ff; animation: rotate 2s linear infinite; } .progress-circle:before { content: '💎'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; animation: glow 1.5s 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 glow { 0%, 100% { text-shadow: 0 0 10px #1e90ff, 0 0 20px #1e90ff, 0 0 30px #1e90ff; } 50% { text-shadow: none; } } </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>