Magnetic Hero

A big bold headline whose letters scatter around the cursor (or lean in) and spring back, with chunky offset-shadow buttons.

Blocks
landingherointeractivetypography
Fresh out of the oven

Playful interface pieces that react to every nudge, built to drop straight into your next launch.

Wave your cursor over the headline

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { HeroMagnet } from "@/registry/blocks/hero-magnet";

export function Example() {
  return <HeroMagnet />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

More in Blocks