Jump to content
Search Community

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

Posted

Hi and welcome to the GreenSock forums.

 

Thanks a lot for the demo. Super helpful.

 

2 problems

 

1. your update2 function is logging 'update1'

 

function update1() {
  console.log('update1');
}
function update2() {
  console.log('update1'); //oops
}

obviously a simple typo. no problem.

 

However the big problem is that seek() takes a second parameter called suppressEvents which is true by default. 

Set that to false and you should be good to go

function intv() {
  tl2.seek(t2 += 0.01, false);
}

seek() : http://greensock.com/docs/#/HTML5/GSAP/TimelineLite/seek/

 

demo: http://codepen.io/anon/pen/vmnAu

  • Like 2
Posted

You're welcome.

And no worries, there are a lot of subtle nuances like "suppressEvents" that you can only really appreciate when you need them.

 

Thanks for sharing the links to spark-scroll. I have yet to get deep into Angular, but wish you great success with the project.

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