Hyper Text
A text animation that scrambles letters before revealing the final text.
HOVER ME!
import { HyperText } from '@/registry/magicui/hyper-text'
export function HyperTextDemo() { return <HyperText>Hover Me!</HyperText>}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/hyper-textbunx shadcn@latest add @magicui-solid/hyper-textyarn dlx shadcn@latest add @magicui-solid/hyper-textnpx shadcn@latest add @magicui-solid/hyper-textImport
Section titled “Import”import { HyperText } from '@/components/magicui/hyper-text'<HyperText>Hover me</HyperText>| Prop | Type | Default | Description |
|---|---|---|---|
children |
string |
- |
Text content to animate |
class |
string |
- |
The class name to be applied to the component |
duration |
number |
800 |
Duration of the animation in milliseconds |
delay |
number |
0 |
Delay before animation starts (in ms) |
as |
ValidComponent |
"div" |
Component to render as |
startOnView |
boolean |
false |
Start animation when component is in view |
animateOnHover |
boolean |
true |
Enable hover animation |
characterSet |
string[] |
A-Z |
Custom character set for scramble effect |
Original:
magicui.design/docs/components/hyper-text