About
Cursor-driven variable-font paragraph where letters near the pointer gain weight and optical size, then settle back
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Variable Text Proximity to your project and fits it to your theme.
Code
How Variable Text Proximity is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import VariableTextProximity from "@/components/ui/variable-text-proximity";
export default function VariableTextProximityDemo() {
return (
<VariableTextProximity
text="Typography that leans in. Move across the line and every letter thickens as the cursor draws near, then eases back the moment you pass."
radius={120}
falloff="gaussian"
baseWeight={320}
hoverWeight={860}
baseOpticalSize={10}
hoverOpticalSize={48}
italic
/>
);
}








