Vertical 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>Vertical 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: 80px; height: 300px; background: #e0e0e0; border-radius: 40px; overflow: hidden; position: relative; } .progress-bar-fill { height: 75%; width: 100%; background: linear-gradient(to top, #6a11cb, #2575fc); border-radius: 40px 40px 0 0; position: absolute; bottom: 0; transition: height 0.5s ease-in-out; } .progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; font-weight: bold; color: #fff; } </style> </head> <body> <div class="progress-container"> <div class="progress-bar-fill" id="progressBar"></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.height = `${progress}%`; progressText.textContent = `${progress}%`; }); </script> </body> </html>