Jump to content
Search Community

Jumping Ahead in Timeline For Testing Purposes

Amanda test
Moderator Tag

Go to solution Solved by PointC,

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

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

  • Solution

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

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