Jump to content
Search Community

tweenTo Timing

elegantseagulls
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

elegantseagulls
Posted

Hi Friends,

 

I'm trying to scrub to different labels in my timeline using `tweenTo` and I want the time to tween there to be 1s no matter where in the timeline I start from. Is there any way to set a time duration on a `.tweenTo`?

See the Pen MBWqYX by elegantseagulls (@elegantseagulls) on CodePen.

Posted

Hi @elegantseagulls :)

 

You can add the duration like this:

 

jetTL.tweenTo('turn0').duration(1);

 

Happy tweening.

:)

 

  • Like 5
  • Thanks 1
elegantseagulls
Posted

@PointC

 

Oh, dang! Thanks! Not sure why that didn't cross my mind.

  • Like 3

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