TextNew

Hyper Text

Letters cycle through random characters and settle into the word. Runs again on hover.

Customize

gradientFrom
gradientTo
scrambleColor

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

More in Pro

View all

Props

11 properties
PropertyTypeDefaultDescription
childrenstring"CODEARIA"The text that scrambles and settles back.
durationnumber800Scramble duration in milliseconds.
delaynumber0Delay before the first run, in milliseconds.
animateOnHoverbooleantrueRun the effect again on hover.
startOnViewbooleanfalseWait until the text scrolls into view.
as'div' | 'h1' | 'h2' | 'h3' | 'p' | 'span' | ..."div"HTML tag of the wrapper.
characterSetstring[]—Characters used while scrambling. Latin A–Z by default.
classNamestring—Tailwind classes for the wrapper.
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.
scrambleColorstring"#a1a1aa"Colour of the letters that are still scrambling.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all