Ocean Wave 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>Ocean Wave Progressbar</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(to right, #3b82f6, #0ea5e9, #0284c7); 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(#00bfff var(--progress), transparent 0); box-shadow: 0 0 20px #00bfff; animation: rotate 4s linear infinite; } .progress-circle:before { content: '🌊'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; animation: wave 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 wave { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.2); } } </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>