Jump to content
Search Community

Picture jerks in animations

PereCC 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 PereCC, and Welcome to the GreenSock forum!

 

I see in your code that your animating properties like left and top .. that will cause jank (lost frames) since top and left only animate on a sub-pixel level and can not use the GPU to render.

 

So in your tweens you should change:

  • left to x
  • top to y

An add this to your tweens:

  • rotation: 0.01

Also it is actually much better for us to see some code for context in a

See the Pen by pen (@pen) on CodePen

or jsfiddle example instead of zip file.

 

Do you have a code example of what you have tried so we can see your code example in context? This way we can test your code live on codepen to better help you!

 

Here is a video tut on how to create a codepen example.

 

Thanks!

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