Atelier UI

Search components…

Search components…

Text Scramble

Text that scrambles through random glyphs before resolving, replaying on hover, focus or trigger change.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

TextScrambleProps

Also accepts all props of Omit<React.ComponentProps<"span">, "children">

PropTypeDefaultDescription
text* requiredstring—The final text
durationnumber900Total scramble time in ms
charsstringDEFAULT_CHARSGlyphs used while scrambling
triggerunknown—Change this value to replay the effect
scrambleOnHoverbooleantrueReplay on hover and keyboard focus

Install

$ npx shadcn@latest add https://chromotion.dev/r/text-scramble.json

More like this