Sajari UI

Transition

Transition is a container element used for transitioning child components.

The base of the component was provided by Adam Watham from Tailwind in a GitHub Gist.

Import

Usage

Editable Example

Staggered

Editable Example

Child Transition components

The value of show will flow down the tree to child components to make chaining animations easier.

Props

The Transition component has the following props.

NameTypeDefaultDescription
showbooleanShow the transition.
enterTransitionStyleProps, Array<TransitionStyleProps>Properties to set before the transition in begins.
enterFromTransformStyleProps, Array<TransformStyleProps>Properties to set at the beginning of transitioning in.
enterToTransformStyleProps, Array<TransformStyleProps>Properties to transition in to.
leaveTransitionStyleProps, Array<TransitionStyleProps>Properties to set before the transition out begins.
leaveFromTransformStyleProps, Array<TransformStyleProps>Properties to set at the beginning of transitioning out.
leaveToTransformStyleProps, Array<TransformStyleProps>Properties to transition out to.
appearbooleanTransition on show.
childrenReact.ReactNodeProperties to set before the transition begins.