GSAP ease property

GSAP ease property 



Ease will control whether your animation slows down or speeds up.

Easing is the primary way to change the timing of your tweens

 
gsap.to(".box", {
    x:800,
    backgroundColor:'red',
    duration:4
  })
  gsap.to(".box1", {
    x:800,
    backgroundColor:'green',
    ease:"power4.out",
    duration:4
  })


Here we are comparing the moment of two boxes, having one with no ease property and another with power4.out, 
We will notice that second box will move faster then first. This means the power4.out gives speed near to the end. The more the value with power the more faster will be.

Some other ease properties are:

ease:”bounce” will bounce on the way out

ease:”bounce.in” will bounce on the way in

ease:”bounce.inOut” will bounce on the way in and out


There are many other eases you can visit at : GreenSock Eases



Comments

Popular posts from this blog

CSS simple grid layout

Gsap timeline position parameters

GSAP Timelines