1
3
Block

Hyper Text

PreviousNext

A text animation that scrambles letters before revealing the final text.

import { HyperText } from "@/components/ui/hyper-text"

export function HyperTextDemo() {
  return <HyperText>Hover Me!</HyperText>
}

Installation

pnpm dlx shadcn@latest add https://ebonui.com/r/hyper-text.json

Usage

import { HyperText } from "@/components/ui/hyper-text"
<HyperText>Hover me</HyperText>

Props

PropTypeDefaultDescription
childrenstring-Text content to animate
classNamestring-The class name to be applied to the component
durationnumber800Duration of the animation in milliseconds
delaynumber0Delay before animation starts (in ms)
asReact.ElementType"div"Component to render as
startOnViewbooleanfalseStart animation when component is in view
animateOnHoverbooleantrueEnable hover animation
characterSetstring[]A-ZCustom character set for scramble effect