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