Shuffle Text
A text scramble/decode animation that starts with random characters and gradually reveals the actual text letter by letter. Creates a cipher/decode effect perfect for hero sections, headlines, and interactive elements.
Basic Usage
Text automatically scrambles and decodes on mount.
Hover Trigger
Text scrambles when user hovers over it.
Scroll Trigger
Text decodes as you scroll - stops when you stop scrolling!
Installation
npm install framer-motionpnpm install framer-motionyarn add framer-motionbun add framer-motionProps
| Prop | Type | Default |
|---|---|---|
text? | string | required |
trigger? | 'mount' | 'hover' | 'scroll' | 'mount' |
scrambleSpeed? | number | 50 |
revealDelay? | number | 100 |
className? | string | '' |
characterSet? | string | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*' |
sequential? | boolean | true |
onComplete? | () => void | undefined |
Speed Examples
// Slow dramatic decode (good for hero sections)
<ShuffleText text="Welcome" scrambleSpeed={60} revealDelay={200} />
// Fast decode (good for hover effects)
<ShuffleText text="Click Me" scrambleSpeed={30} revealDelay={80} />
// Ultra slow cinematic decode
<ShuffleText text="Loading..." scrambleSpeed={80} revealDelay={300} />Shiny Text
A premium Apple-style shine effect that sweeps across text like light reflecting off a glossy surface. Features a bright metallic base with multiple shine layers and glow effect.
Text Reveal
Text reveal animations create a dynamic and engaging effect as text appears on the screen. This technique can be used to draw attention to specific content or enhance the overall user experience.
