Hyper Text
- Source
- Magic UI ↗
- Author
- Magic UI
- Licence
- MIT
Loading…
Letters scramble through the alphabet and settle; hover to scramble again.
Code
"use client";
import { HyperText } from "@/lab/magicui/ui/hyper-text";
export default function HyperTextDemo() {
return (
<div className="relative flex h-full w-full items-center justify-center text-neutral-950">
<HyperText>Hover Me!</HyperText>
</div>
);
}
Prompt
Build "Hyper Text", a text animation. What it does: Letters scramble through the alphabet and settle; hover to scramble again. Write it as a single self-contained React component in TypeScript that fills its parent (w-full h-full), styled with Tailwind CSS, using motion. Technique: a requestAnimationFrame loop, the Motion library. It sits on a light background, in a 16:10 frame. Respect prefers-reduced-motion with a still state, pause work when the element is off screen, and keep it accessible. Original: https://magicui.design/docs/components/hyper-text (Magic UI, MIT).