Animate
A versatile component allowing for full control of your animations. The Animate component allows you to define your own animations, use predefined animation Clips or bind reactive Links.
Importing
1
import { Animate } from '@infinityfx/lively';Usage
Properties
React.ReactNode The child elements wrapped and animated by the component.
ClipOptions | Clip = {}Defines default animation keyframes played on mount or bound to reactive AnimationLinks.
ClipInitials | string = {}Initial property state values assigned before the animation begins.
{ [key: string]: ClipOptions | Clip } = {}Defines a dictionary of named animation clips that can be referenced within triggers.
AnimateTriggers = { animate: ['mount'] }Map linking named animation clips to reactive values or lifecycle events like 'mount' and 'unmount'.
boolean | number = falseWhether to inherit clips from a parent Animate component and allow animation triggers to cascade.
number = 0.07Delay in seconds between staggered animations across multiple child elements.
number = 10Maximum number of child elements to stagger before animating remaining elements simultaneously.
CorrectionAlignment | ScaleCorrection = 'self'Enables scale distortion correction for border radii, box shadows, and nested child elements.
TransitionOptions | boolean Configures transition animations during morphing or layout changes (requires a parent LayoutGroup for layout updates).
string A globally unique ID enabling automatic morphing animations when elements with matching IDs mount or unmount.
boolean = falseWhether all playback state for this animation is currently paused.
(animation?: string) => void Callback fired when an animation sequence finishes playing.
React.Ref<Animator> React ref object giving direct access to the underlying Animator instance.