Harsh Jadhav

Text Repel

Text 67

About

Interactive heading text whose individual letters push away from or pull toward the cursor with springy motion.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Repel to your project and fits it to your theme.

Code

How Text Repel is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { TextRepel } from "@/components/ui/text-repel";

const settings = {
  radius: 120,
  strength: 45,
  damping: 14,
  stiffness: 180,
  mass: 0.4,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen flex items-center justify-center bg-background">
      <TextRepel
        text="Repel"
        className="text-7xl font-bold text-foreground"
        radius={s.radius}
        strength={s.strength}
        damping={s.damping}
        stiffness={s.stiffness}
        mass={s.mass}
      />
    </div>
  );
}

Dependencies

More by Harsh Jadhav

View all
  • Scroll Choreography

    Scroll Choreography

    1K
  • Collection Surfer

    Collection Surfer

    872
  • Cursor Driven Particles Typography

    Cursor Driven Particles Typography

    782
  • Liquid Glass Carousel

    Liquid Glass Carousel

    618
  • Wheel Carousel

    Wheel Carousel

    576
  • Animated Gradient

    Animated Gradient

    411
  • Circuit Board

    Circuit Board

    180
  • Magnetic Dock

    Magnetic Dock

    118

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    8
  • Rainbow Text Effect

    Rainbow Text Effect

    60
  • Scroll Fill Headline

    Scroll Fill Headline

    39
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    134
  • Apple Hello Effect

    Apple Hello Effect

    672
  • Blur Reveal

    Blur Reveal

    375
  • NeonRGBTextEffect

    NeonRGBTextEffect

    155
  • Text Reveal

    Text Reveal

    31