Edu Calvo

Gravity Letters

Text

About

A text component whose letters detach and fall under simulated gravity, piling up at the bottom, then spring back into place on hover, click, or scroll into view.

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

Code

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

Usage.tsx

import GravityLetters from "@/components/ui/gravity-letters";

export default function GravityLettersDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-8">
      <GravityLetters
        text="Hover me to topple"
        className="text-4xl font-bold text-foreground sm:text-6xl"
      />
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    296
  • Pixel Flow Field

    Pixel Flow Field

    216
  • AI Task List

    AI Task List

    202
  • Siri Orb

    Siri Orb

    199
  • Gravity Stars

    Gravity Stars

    177
  • Cursor Follow

    Cursor Follow

    165
  • Agent Avatar

    Agent Avatar

    157
  • Coverflow Carousel

    Coverflow Carousel

    154

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    10
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Text Reveal

    Text Reveal

    396
  • Blur Reveal

    Blur Reveal

    393
  • Apple Hello Effect

    Apple Hello Effect

    687
  • Scroll Fill Headline

    Scroll Fill Headline

    59
  • Per Word Crossfade

    Per Word Crossfade

    20