Rainbow Spiral 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>Rainbow Spiral Progressbar</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #1a1a1a; 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(from 180deg, #ff0000, #ff7f00, #ffff00, #7fff00, #00ff00, #00ff7f, #00ffff, #007fff, #0000ff, #7f00ff, #ff00ff, #ff007f, #ff0000); animation: rotate 3s linear infinite; } .progress-circle:before { /* content: '🌈'; */ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; animation: pulse 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 pulse { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(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); } let progress = 0; setInterval(() => { if (progress < 100) { progress += 1; updateProgress(progress); } }, 100); </script> </body> </html>