Atrium // Components

Transition

Animates children with FLIP when they reorder, enter, or exit the DOM.

Wraps a list of children and automatically plays smooth layout animations whenever they move, are added, or are removed.

Examples

Shuffle

Click shuffle to see items animate to their new positions.

Filtered list

Filter tasks by tag — items animate in and out as the list changes.

Guidelines

  • Add data-key to every child so the element can track identity across re-renders. Without it, move detection breaks after DOM changes.
  • Control speed and easing via CSS transition-duration and transition-timing-function on the a-transition element.
  • Use animate-enter / animate-exit only when the list is the primary focus — avoid them in dense UIs where many items change at once.

References