Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
PereCC

Picture jerks in animations

Recommended Posts

Hi there. 

I am new user, and i don't know why my picture is jerks when picture zoom in and zoom out. Could you halp me please? I recorded screen video. You can see it.  

 

 

Jerk.zip

Link to comment
Share on other sites

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

Thank you alot. Now animation is perfect. =) And i will use codped. Promise  :-P

  • Like 1
Link to comment
Share on other sites

Thank you PereCC .. Glad you got it working, now we can defeat the Rebel Scum! :)

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