Jump to content
Search Community

TimelineMax addPause() internmittedly not respected

kaotix 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

I haven't been able to find an exact way to reproduce this.
 
I have a simple timeline ($elBg is a jquery element): 

tl.add('intro').addPause('intro')
.to($elBG, 2, {left: '-1040px'})
.add('something').addPause('something')
.to($elBG, 2, {left: '-2040px'})
.add('ending').addPause('ending')
.to($elBG, 2, {left: '-3040px'});

And I have two buttons that trigger .play or .reverse to move between the scenes. Every now and then the pause is skipped over and it continues to the next scene. I can't find an exact way to reproduce this I'm afraid as most of the time it works as expected. I have solved the issue by using tl.tweenTo(tl.getLabelBefore()); and tl.tweenTo(tl.getLabelAfter()); instead for my buttons but thought you might like to know incase there was a bug.

 

Adam.

Link to comment
Share on other sites

  • 2 weeks later...

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