AnimatedText API
import { AnimatedText } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
align | AnimatedTextAlign | |
children | React.ReactNode | |
customEffect | string | |
delay | number | string | |
duration | number | string | |
effect | AnimatedTextEffect | |
effectDirection | 'normal' | 'reverse' | 'alternate' | 'alternate-reverse' | |
effectFillMode | 'none' | 'forwards' | 'backwards' | 'both' | |
effectIterationCount | number | string | |
effectTimingFunction | string | |
elevation | AnimatedTextElevation | |
loop | boolean | |
loopDelay | number | string | |
padding | number | string | |
paused | boolean | |
radius | number | string | |
size | AnimatedTextSize | |
split | AnimatedTextSplit | |
stagger | number | string | |
text | string | |
tone | AnimatedTextTone | |
trigger | AnimatedTextTrigger | |
variant | AnimatedTextVariant |
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