Re:CSS Triggers
by robin_reala on Friday September 15, 2017 @03:36AM
(#15255347)
Using certain CSS properties will trigger various phases of rendering in browsers. For performance reasons you want to do the minimum amount of work possible.
An example: adjusting the width of an object will understandably cause the browser to relayout the page in every browser. But what if you just wanted an animated bounce effect? You could animate the width of the object, but in practice a scale transform would perform much better in most browsers as it typically doesn’t trigger a relayout.
So this page just gives you information about which phases are triggered by which properties in which rendering engines.
An example: adjusting the width of an object will understandably cause the browser to relayout the page in every browser. But what if you just wanted an animated bounce effect? You could animate the width of the object, but in practice a scale transform would perform much better in most browsers as it typically doesn’t trigger a relayout.
So this page just gives you information about which phases are triggered by which properties in which rendering engines.