TextNew

Text Effect

Text reveals word by word or letter by letter: from blur, scale or slide. Five ready presets.

Customize

gradientFrom
gradientTo

Based on Text Effect (MIT license) · Terms of use

More in Pro

View all

Props

14 properties
PropertyTypeDefaultDescription
childrenstring"Build something people remember"The text to reveal.
per'word' | 'char' | 'line'"word"Split by word, character or line.
preset'blur' | 'fade-in-blur' | 'scale' | 'fade' | 'slide'"fade"Ready-made reveal style.
delaynumber0Delay before start, in seconds.
speedRevealnumber1How fast the parts follow each other.
speedSegmentnumber1How fast a single part animates in.
triggerbooleantrueShow the text. false hides it with an exit animation.
askeyof JSX.IntrinsicElements"p"HTML tag of the wrapper.
variants{ container?: Variants; item?: Variants }—Custom Motion variants instead of a preset.
segmentWrapperClassNamestring—Classes for each part's wrapper.
onAnimationComplete() => void—Called when the reveal finishes.
classNamestring—Tailwind classes for the wrapper.
gradientFromstring"#ffffff"Colour of the first piece of text. The text fades into the gradient end colour.
gradientTostring"#d4d4d8"Colour of the last piece, the end of the gradient.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all