Slide 41
Slide 41 text
@marktimemedia
Properties of CSS animation (via KeyCDN)
• Layout properties - determine the size and placement of page elements
– Animations that change an element’s width and height can affect the placement of other page elements,
which can cause a chain reaction known as “layout thrash.”
– Since animations that change the page layout are especially costly, they are best avoided.
• Paint properties - define the appearance of page elements
– Making changes to properties such as color requires repainting, which can be costly.
– Simple animations that require a small portion of the viewport to be repainted may have a negligible impact
on overall performance. Larger animations that require repainting may not be worth the effort.
• Composite properties – CSS properties (transforms) that do not trigger paint
or layout changes
– For best results, try to limit yourself these four composite properties: position, scale, rotation, opacity