Motion· 19 of 25

19 of 25

Give new elements a starting style

Use @starting-style for a CSS transition on newly rendered content. Leave the normal style visible so the content remains usable if the entry animation is skipped.

Do300ms
Don’t0ms

Do.row { @starting-style { opacity: 0 } } Starting-style illustration — rows enter from below

Don’tuseEffect(() => setShown(true)) Instant reveal — rows appear at their final positions

Compare the illustrated first frames of the inserted rows.

Reduced motion: end states only, as your setting asks.

Before you ship

  • Does the row appear on its first insertion?
  • Is its ordinary computed style visible?
  • Does removing the animation leave the information accessible?

Next

Size slide exits to the moving elementMotion · 20 of 25J