Jump to content
GreenSock

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

Jumping Ahead in Timeline For Testing Purposes

Recommended Posts

Quick question - I'm trying to figure out how to jump ahead in a timeline, just as a temporary measure for working and testing purposes. I'm trying to use seek.();, but it doesn't seem to be working. 

 

thanks!

Link to comment
Share on other sites

Hi ald603  :)

 

What I usually do is add a testing label and move it around as I need to only view parts of a timeline during the design process. Something like this:

tl = new TimelineMax({paused:true});

tl.to(element,1, {...})
  .to(element,1, {...})
  .add("testingLabel")
  .to(element ,1, {...});

tl.play("testingLabel")

Here's a really simple CodePen showing it in action.

See the Pen GoPNwP by PointC (@PointC) on CodePen

 

Hopefully that helps a bit.

 

Happy tweening.

:)

  • Like 4
Link to comment
Share on other sites

Thanks, will take a look!

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