-
-
Save dnjstrom/806543b1e776d8b40d53ba8722caae8c to your computer and use it in GitHub Desktop.
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
const spinner = document.createElement("div"); | |
spinner.classList.add("spinner"); | |
["ball-1", "ball-2", "ball-3", "ball-4"].forEach(ballNumber => { | |
const ball = document.createElement("div"); | |
ball.classList.add("ball"); | |
ball.classList.add(ballNumber); | |
spinner.appendChild(ball); | |
}); | |
document.body.appendChild(spinner); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment