SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const progressBar: HTMLElement = document.querySelector('.progress_bar');
  2.  
  3. let width = 0;
  4. const widthIncrease = setInterval(() => {
  5.     width++;
  6.     progressBar.style.width = `${width}%`;
  7.  
  8.     if (width === 100) {
  9.         clearInterval(widthIncrease);
  10.     }
  11. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top