Jump to content
Search Community

Fluttering when animating height

sammyrc
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Posted

I'm trying to understand why when animating stacked elements simultaneously results in a flicker of borders, particularly the last one. I'm guessing it's due to rounding somewhere along the way, but can't explain why it happens on some animations and not others. The codepen demonstrates the problem if you look at the bottom elements' borders.

 

See the Pen rNLeEYv by sammyrc34 (@sammyrc34) on CodePen.

  • Solution
Posted

Please try adding this to the top of your JS.

 

gsap.defaults({
  autoRound: false
});

 

  • Like 3
Posted
17 hours ago, PointC said:

Please try adding this to the top of your JS.

 


gsap.defaults({
  autoRound: false
});

 

 

Thank you, that did the trick!

 

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