Animated 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>Animated Progress Bar</title> <style> body { font-family: 'Arial', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: #f0f2f5; margin: 0; } .progress-container { width: 80%; max-width: 500px; background: #fff; border-radius: 20px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; } .progress-bar { height: 50px; background: linear-gradient(90deg, #4caf50, #8bc34a); width: 0; position: relative; animation: progress-animation 5s ease-in-out infinite; } .progress-bar::after { content: '🚀'; font-size: 30px; position: absolute; right: 10px; top: 10px; animation: emoji-animation 5s ease-in-out infinite; } .progress-text { position: absolute; width: 100%; text-align: center; top: 0; left: 0; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: bold; color: #fff; mix-blend-mode: difference; animation: text-animation 5s ease-in-out infinite; } @keyframes progress-animation { 0% { width: 0; } 50% { width: 100%; } 100% { width: 0; } } @keyframes emoji-animation { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-100%); } } @keyframes text-animation { 0%, 100% { color: #fff; } 50% { color: #000; } } </style> </head> <body> <div class="progress-container"> <div class="progress-bar"> <div class="progress-text">Loading...</div> </div> </div> </body> </html>