Skip to content

Commit 6c15ba4

Browse files
committed
minor fixes
1 parent 32f01fb commit 6c15ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

7-animation/2-css-animations/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ During a CSS animation, this process repeats every frame. However, CSS propertie
423423

424424
The calculations may take time, especially on pages with many elements and a complex layout. And the delays are actually visible on most devices, leading to "jittery", less fluid animations.
425425

426-
The animations of properties that skip the Layout and Paint steps are faster.
426+
The animations of properties that skip the Layout step are faster. It's even better if Paint is skipped too.
427427

428428
For most CSS properties, the rule is simple: if its change may affect geometry, move elements (even in theory), then it triggers Layout. Otherwise (e.g. a `color` change may not shift elements around), the browser doesn't need to calculate geometry and directly goes to Paint, or even Composite step. You can find a longer list of CSS properties and which stages they trigger at <https://csstriggers.com>.
429429

0 commit comments

Comments
 (0)