Easing
"slow", "rough", and "expoScale" eases are not in the core - they are packaged together in an EasePack file in order to minimize file size. "CustomEase", "CustomBounce", and "CustomWiggle" are packaged independently as well (not in the core).
See the installation page for details.
Easing is the primary way to change the timing of your tweens. Simply changing the ease can adjust the entire feel and personality of your animation. There are infinite eases that you can use in GSAP so we created the visualizer below to help you choose exactly the type of easing that you need.
Ease Visualizer
- Add point: ALT-CLICK on line
- Toggle smooth/corner: ALT-CLICK anchor
- Get handle from corner anchor: ALT-DRAG
- Toggle select: SHIFT-CLICK anchor
- Delete anchor: press DELETE key
- Undo: CTRL-Z
GSAP uses a default ease of "power1.out"
. You can overwrite this in any tween by setting the ease
property of that tween to another (valid) ease value. You can set a different default ease for GSAP by using gsap.defaults(). You can also set defaults for particular timelines.
gsap.defaults({
ease: "power2.in",
duration: 1,
});
gsap.timeline({defaults: {ease: "power2.in"}})
How to use the Ease Visualizer
To use the ease visualizer, simply click on the ease name that you'd like to use. You can also click on the underlined text to change the values and type of ease.
Use the navigation links in the menu to the left for more information about complex eases.
Huge thanks to Carl for providing this video. We highly recommend their extensive GSAP training at CreativeCodingClub.com. Enroll today in their Free GSAP course and discover the joy of animating with code.