Created
August 22, 2018 18:07
-
-
Save ajmeyghani/9b40de1f27e9dd80788cd0d4cceffc17 to your computer and use it in GitHub Desktop.
Animating multiple boxes with Anime
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 boxesAnimation = anime({ | |
targets: '.js-box', | |
translateX: (elm, index, t) => index * 50, | |
scale: 2, | |
easing: 'easeInOutSine', | |
delay: (elm, index, t) => index * 20, | |
duration: 1200, | |
loop: true, | |
direction: 'alternate', | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment