Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const progressBar: HTMLElement = document.querySelector('.progress_bar');
- let width = 0;
- const widthIncrease = setInterval(() => {
- width++;
- progressBar.style.width = `${width}%`;
- if (width === 100) {
- clearInterval(widthIncrease);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement