Last active
March 6, 2021 12:25
-
-
Save RolandWarburton/07fbb4fb5e4257b63d4cfd6e9350ff24 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 bounceEffect = (target) => { | |
const dur = 1.25; | |
const bounceEffect = new TimelineMax(); | |
bounceEffect | |
.to(target, { y: "-=20", ease: Sine.easeInOut, duration: dur }) | |
.to(target, { y: "+=40", ease: Sine.easeInOut, duration: dur }) | |
.to(target, { y: "-=20", ease: Sine.easeInOut, duration: dur }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment