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-keyto 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-durationandtransition-timing-functionon thea-transitionelement. - Use
animate-enter/animate-exitonly when the list is the primary focus — avoid them in dense UIs where many items change at once.