Animate Layout Group

Animate width and height of lists of components as they enter and exit

import { AnimateLayoutGroup } from "@plexui/ui/components/Transition";

Give each list item a stable key. Use for lists whose items should affect layout as they enter and exit (e.g. dynamic vertical or horizontal lists).

Examples

Overview

<AnimateLayoutGroup> is like <TransitionGroup> for lists, with batteries-included animations and layout (height/width) support.

Same property set as <Animate> plus layoutEnter, layoutExit, and layoutMove.

Vertical list

(Click to remove)

Horizontal list

(Click to remove)

Reference

PropTypeDefaultDescription
classNamestringClass applied to the wrapper element
transitionClassNamestringClass applied to the inner TransitionGroup
dimension"height" | "width""height"Which property to animate
enterTransitionDefinitionEnter transition
exitTransitionDefinitionExit transition
initialInitialTransitionDefinitionState before enter
layoutEnterLayoutTransitionDefinitionLayout enter timing
layoutExitLayoutTransitionDefinitionLayout exit timing
layoutMoveLayoutTransitionDefinitionLayout move timing
hideOverflowbooleanfalseApply overflow: hidden
itemAnchor"start" | "end""start"Which side items pin to
preventInitialTransitionbooleantrueWhen false, run enter on initial mount
forceCompositeLayerbooleanfalseApplies will-change; use with caution