Jump to content
Search Community

why is my animation smoother with gsap DevTools on?

geedix test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I've noticed that when I remove devTools from my cpu-heavy animations, the start gets a little rough. There are flashes of elements popping into place.

Is there something I can do to make it just as smooth after DevTools is gone?

 

 

 

See the Pen QWPjBbx by geedix (@geedix) on CodePen

Link to comment
Share on other sites

  • Solution

Short answer: Just force the playhead to the end and then back to the beginning like this: 

tl.progress(1).progress(0);

That basically pre-renders everything. 

 

The problem was that you're doing a stagger on a from() tween, thus technically the start of the sub-tweens are offset and you're seeing those start in a staggered fashion. GSDevTools employs a trick to force the playhead to the end as an optimization. 

  • Like 2
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...