Created
February 5, 2020 22:57
-
-
Save KustomDeveloper/18629b67c70c38be73899ca3be26861e to your computer and use it in GitHub Desktop.
Make a copy of a set of elements and loop through them using es6
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
| [...document.querySelectorAll('.navlink')].forEach((item) => { | |
| setTimeout(() => { | |
| TweenMax.to(item, 0.1, {left:0}); | |
| }, 300) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment