Striped Progress Bar - 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>Striped Progress Bar</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f0f2f5; font-family: 'Arial', sans-serif; } .progress-container { width: 80%; max-width: 600px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); padding: 20px; text-align: center; position: relative; } .progress-bar { width: 100%; background: #e0e0e0; border-radius: 20px; overflow: hidden; height: 30px; position: relative; margin: 20px 0; } .progress-bar-fill { height: 100%; background: repeating-linear-gradient( 45deg, #00c6ff, #00c6ff 10px, #0072ff 10px, #0072ff 20px ); border-radius: 20px 0 0 20px; transition: width 0.5s ease-in-out; position: relative; } .progress-bar-fill::before { content: ''; position: absolute; top: -25px; right: -25px; font-size: 25px; animation: flexAnimation 2s infinite; } @keyframes flexAnimation { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(20deg); } } .progress-text { font-size: 18px; font-weight: bold; color: #333; margin-top: 10px; } .icon { font-size: 50px; margin-bottom: 10px; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } </style> </head> <body> <div class="progress-container"> <div class="icon">🔥</div> <div class="progress-bar"> <div class="progress-bar-fill" id="progressBar"></div> </div> <div class="progress-text" id="progressText">75%</div> </div> <script> document.addEventListener('DOMContentLoaded', () => { const progressBar = document.getElementById('progressBar'); const progressText = document.getElementById('progressText'); let progress = 75; // Change this value to update the progress percentage progressBar.style.width = `${progress}%`; progressText.textContent = `Progress: ${progress}%`; }); </script> </body> </html>