Created
July 20, 2020 18:49
-
-
Save paperscissors/cf13c27ee0da78dcea628d29275dc304 to your computer and use it in GitHub Desktop.
quick intro animation for multiple staggered elements
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
/* | |
.orc { | |
transition: top 1s ease 0s; | |
position: relative; | |
top: -3000px; | |
&.shown { | |
top: 0; | |
} | |
} | |
*/ | |
for (let orc of document.getElementsByClassName('orc')) { | |
orc.classList.add('shown') | |
await this.sleep(this.getRandomIntegerInRange(50, 400)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment