Jump to content
Search Community

Easing in staggerTo with cycle function

ceindeg test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Here's my code...

 

.staggerTo(".card-container", 0.3, {
  force3D:true,
  cycle:{
    right:function(index){
      return index * rightmulitplier + "%";
    }, ease: Elastic.easeOut
  }
}, 0.00001, 2);

 

Have I set the easing in the correct place? It doesn't seem to have any effect at all...

 

Also as an extra question - the animation is pretty jittery which (as I understand it) is caused by animating the "right" value rather than setting the X value. However my layout needs to stretch from the right edge so is there a way to animate the "x" from the right? e.g. x: right 20% etc.

 

Sorry for the lack of codepen, the work is confidential so I can't share it. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...