Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
404Assassin

repeating animation causes performance issue

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

Have a build animation for a page that uses the stagger method, when repeating the animation it plays as expected the first four times it's played but if you repeat it a fifth time or more the animation chokes. There's a tweenMax killAll at the start of the animation that should take care of any overlapping animations.

 

I've attached the files, you can run the sample code by launching 'html/Course.htm'. Any help in determinig what is causing the performance issue would awesome.

Link to comment
Share on other sites

I can't seem to see your attachments. Did you zip them prior to uploading?

 

Are your animations part of a TimelineLite or Max? If so there should be no reason to be killing any tweens prior to looping.

 

 

If you can optimize your files to only include the bare minimum of code/assets necessary to replicate the problem it will make finding the problem much easier and quicker.

 

Anyway, please try to post your code again. We would love to help you get to the bottom of this issue.

Link to comment
Share on other sites

Hey Carl,

 

figured it out. As it turns it's an issue that was introduced by the developer and not a Greensock animation issue. Was iteratively adding handlers and with each replay of the build the calls to the handlers were iteratively increasing.

 

Really loving the greensock.js, it fills out the empty spot in my .js library perfectly :)

Link to comment
Share on other sites

Thanks for the update. Glad you got it worked out.

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.

×