Skip to main content
type
Transition
required
The transition to apply when the component is inserted or removed. Can be a built-in string or a configuration object.Built-in transitions:
  • "opacity" — fades in/out
  • "slide" — slides in from the leading edge and out to the trailing edge
  • "scale" — scales from zero to full size
  • "identity" — no animation (instant)
  • "blurReplace" — cross-fades with a blur effect
Directional transitions:
  • { move: edge } — slides in/out from the specified edge
  • { push: edge } — pushes the old content out as the new content pushes in from the specified edge
Parameterized transitions:
  • { scale: number, anchor?: UnitPoint } — scales from a specific value, optionally around an anchor point
  • { offset: { x?, y? } } — slides in/out by a specific offset
  • { blurReplace: "downUp" | "upUp" } — blur replace with a directional style
Composite transitions:
  • { asymmetric: { insertion, removal } } — different transitions for insertion and removal
  • { combined: [...] } — multiple transitions applied simultaneously

Support

Usage

Opacity (fade)

Slide

Scale

Move from edge

Push from edge

Scale with anchor

Offset transition

Blur replace

Asymmetric transition

Use a different animation for insertion and removal.

Combined transitions

Apply multiple transitions simultaneously.

Notes

  • Transitions only play when a component is conditionally inserted or removed from the view hierarchy.
  • The "identity" transition can be used to explicitly disable animations on insertion/removal.