Jump to content
Search Community

gsap3 cycle method?

Juraj test
Moderator Tag

Recommended Posts

https://greensock.com/3-release-notes/#removed

https://greensock.com/3-migration/#cycle

 

Quote

cycle (formerly only in the stagger methods) has been replaced by gsap.utils.wrap() which is more flexible.

 

Also here:

https://greensock.com/docs/v3/GSAP/UtilityMethods/wrap()

 

gsap.to(".item", {x: gsap.utils.wrap([10, 100, 200, 300, 400, 500]), delay: .5, stagger: 0.1})

Does that help clear things up for you?

  • Like 5
  • Thanks 2
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...