You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We deliberately trigger reflow here. There is no other way to get the browser to lay out the final positions of all the elements so we can measure them.
What’s important is that we do it only the minimal number of times when data changes — not at each frame in the animation.
The only time the reflow isn't needed is when your element hasn't moved at all and there's nothing to animate, in which case the reflow is probably pretty cheap anyway.
Using getBoundingClientRect is causing forced reflow and slows down the rendering in mobile.
The text was updated successfully, but these errors were encountered: