Jump to content


tweenTo Timing

Recommended Posts

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

Link to comment
Share on other sites

Hi @elegantseagulls :)


You can add the duration like this:




Happy tweening.



  • Like 5
  • Thanks 1
Link to comment
Share on other sites



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

  • Like 3
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.