Last active
July 27, 2019 16:34
-
-
Save arturovt/12fe51e64237930f88d62fef8cc50a07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const progress: HTMLElement = document.querySelector('.progress'); | |
let width = 0; | |
const widthInterval = setInterval(() => { | |
width++; | |
progress.style.width = `${width}%`; | |
if (width === 100) { | |
clearInterval(widthInterval); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment