Jump to content
Search Community

Fast forwarding timeline

Steven test
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

Hello,

 

UPDATE : I found this answer http://forums.greensock.com/topic/7694-tweento-duration/ that works well. Sorry for the duplicate question.

 

I created a timeline with labels and tweens. It's basically 4 slides (100% height) that move up or down.

 

I have a top menu and when I click on an item I want to move the playhead to the right label so i'm using the myTimeline.tweenTo('labelName') which is working fine.

 

But let's say I'm on my first label and I want to fast forward to the last one when I click on the last menu item.

 

When I do a tweenTo('lastLabel'), it takes a long time before getting there because it's doing all the transitions (with easing). Is there a way to "skip" the transitions, delays, duration to go to the last label.

 

I could change :

timeline.timeScale()
TweenLite.defaultEase = Linear.easeNone
 

but I was wondering if there was an easier way.

 

Thank you.

Edited by Steven
Link to comment
Share on other sites

Hello and Welcome to the Greensock Forums.

 

have you tried the seek() method:

 

http://api.greensock.com/js/com/greensock/TimelineLite.html#seek()
 

 //jumps to exactly 2 seconds
 myAnimation.seek(2);
 
 //jumps to exactly 2 seconds but doesn't suppress events during the initial move:
 myAnimation.seek(2, false);
 
 //jumps to the "myLabel" label
 myAnimation.seek("myLabel");

is this what you mean?

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