Jump to content
Tookster

Scale rectangle shaky in FireFox?

Recommended Posts

Hi all,

 

Recently switched to the JS environment, after working with Greensock for some months in Flash.

I have a question: I've been working on a banner ad where a DIV is rotatated and scaled. It is a scale up of 20% over 4 seconds, causing FireFox to render the animation not very smoothly. Chrome works like a charm and Safari is having some problems too I guess (I couldn't watch it on IE yet...). I added a codepen, but have the feeling the effect is a little bit worse in my own file.

Any ideas how this is caused? Is it the rotation combined with the scale?

Thanks in advance!

See the Pen yygEeK by anon (@anon) on CodePen

Share this post


Link to post
Share on other sites

Hi and welcome to the GreenSock forums.

 

I'm pretty certain what you are seeing is just FireFox's poor handling of small transform changes and perhaps some pixel-snapping.

 

Here is your demo using a CSS transition for the same effect and it also runs poorly

 

http://codepen.io/anon/pen/YPNjpx?editors=011

Share this post


Link to post
Share on other sites

Hi!

Thanks for the CSS test, which does look the same indeed. Your answer sounds reassuring, I guess the lesson is to be careful with small scaling and the kind.

Thanks for the quick answer, cool to be an active member now instead of the occasional reading of threads :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.