Skip to main content
Version: Next

AnimatedText API

import { AnimatedText } from '@editora/ui-react';

Props​

PropTypeDescription
alignAnimatedTextAlign
childrenReact.ReactNode
customEffectstring
delaynumber | string
durationnumber | string
effectAnimatedTextEffect
effectDirection'normal' | 'reverse' | 'alternate' | 'alternate-reverse'
effectFillMode'none' | 'forwards' | 'backwards' | 'both'
effectIterationCountnumber | string
effectTimingFunctionstring
elevationAnimatedTextElevation
loopboolean
loopDelaynumber | string
paddingnumber | string
pausedboolean
radiusnumber | string
sizeAnimatedTextSize
splitAnimatedTextSplit
staggernumber | string
textstring
toneAnimatedTextTone
triggerAnimatedTextTrigger
variantAnimatedTextVariant

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-animated-text>​

AnimatedText renders the ui-animated-text custom element from @editora/ui-core, which can also be used without React.

Attributes: align, custom-effect, delay, duration, effect, effect-direction, effect-fill-mode, effect-iteration-count, effect-timing, elevation, loop, loop-delay, padding, paused, radius, size, split, stagger, text, tone, trigger, variant