Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Juraj

gsap3 cycle method?

Recommended Posts

Hey guys I may be blind, but is cycle method supported in the gsap3 release? Can't seem to make it work the old way.

Thank you!

See the Pen xxGXJzd by jurajmolnar (@jurajmolnar) on CodePen

Link to comment
Share on other sites

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.
×