Hyperiux Vault

Variable Text Proximity

Component 67

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
    />
  );
}

More by Hyperiux Vault

View all
  • Product Timeline

    Product Timeline

    2.5K
  • Stack Spread

    Stack Spread

    1.3K
  • Arrow Fill Button

    Arrow Fill Button

    946
  • Interactive List Preview

    Interactive List Preview

    887
  • Shiny Button

    Shiny Button

    859
  • Circular Split Roll

    Circular Split Roll

    703
  • Zoom Slider

    Zoom Slider

    469
  • Stack Loader

    Stack Loader

    382

Explore more

Part of Hyperiux Vault — browse the full library on 21st.dev.