TextProNew

Text Morph

When the word changes, shared letters glide to their new spots and the rest fade. Lively on buttons and headings.

Customize

gradientFrom
gradientTo

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

Props

8 properties
PropertyTypeDefaultDescription
childrenstring—The current text. When it changes, shared letters slide to their new places.
asReact.ElementType"p"HTML tag of the wrapper.
variantsVariants—Custom enter and exit variants for letters.
transitionTransition—Custom spring or duration for the letter moves.
gradientFromstring"#ffffff"Colour of the first letter. The text fades into the gradient end colour.
gradientTostring"#d4d4d8"Colour of the last letter, the end of the gradient.
styleCSSProperties—Wrapper styles.
classNamestring—Tailwind classes for the wrapper.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all