Jump to content
Search Community

flickering animation on scale

zozo test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

That's because you're animating "top" and "left" properties which the browser generally applies pixel snapping to. It's much better to animate "x" and "y" transforms. Not only do those perform better, but they allow sub-pixel rendering:

 

See the Pen QWaeONy?editors=0010 by GreenSock (@GreenSock) on CodePen

 

I also noticed:

  1. You're using a REALLY old version of GSAP. Like...ancient. 
  2. You're using the very old syntax too. There's no more TweenMax, TimelineMax, TimelineLite, or TweenLite. Just a simple "gsap" object. Smaller file size, simpler API. 
  3. You had typos in your easing strings (uppercase "O") and were using the newer string-based ease syntax with the super old version of TweenMax which won't work. 
  4. It's not a good idea to reference elements with variables based on their ID in the HTML. Use selector text instead. 
    // bad
    tl.to(women, ...)
          
    // good
    tl.to("#women", ...)

Happy tweening!

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