Created
July 22, 2020 00:01
-
-
Save MohamedRajabMohammed/2cfda89bcbe4465f6db10b5121ae4c5b to your computer and use it in GitHub Desktop.
Variables
This file contains 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
// grab parts of our HTML | |
const countdownArea = document.querySelector('.countdown'); | |
const numbersArea = document.querySelector('.numbers'); | |
const resetBtn = document.querySelector('.reset'); | |
// create an interval and counter | |
let interval; | |
let count = 0; | |
// calculate the height of our numbers | |
const height = countdownArea.getBoundingClientRect().height; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment