Oceanic 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>Oceanic Progress</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #0077be; 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( #00cfff 0%, #00cfff var(--progress), #0077be var(--progress) ); display: flex; justify-content: center; align-items: center; animation: wave 2s ease-in-out infinite; } .progress::before { content: ''; position: absolute; width: 90%; height: 90%; background: #0077be; border-radius: 50%; } @keyframes wave { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } </style> </head> <body> <div class="progress-container"> <div class="progress" style="--progress: 90%;"></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>