kevingirelli

Flip Text

Text 44

About

A text component that flips each character or word into place around its horizontal axis with a 3D CSS rotation animation, playable on load or when scrolled into view.

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

Code

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

Usage.tsx

import { FlipText } from "@/components/ui/flip-text";

export default function FlipTextDemo() {
  return (
    <div className="flex min-h-[260px] w-full items-center justify-center p-10">
      <FlipText
        as="h2"
        from="center"
        className="text-5xl leading-none font-semibold tracking-tight md:text-6xl"
      >
        Hoist the colours
      </FlipText>
    </div>
  );
}

More by kevingirelli

View all
  • Aurora

    Aurora

    171
  • QR Code

    QR Code

    140
  • FAQ Section

    FAQ Section

    101
  • Animated Border

    Animated Border

    89
  • Warp Gradient

    Warp Gradient

    71
  • Corner Frame

    Corner Frame

    71
  • Wave Text

    Wave Text

    63
  • Spotlight

    Spotlight

    52

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    16
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Blur Reveal

    Blur Reveal

    401
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Text Reveal

    Text Reveal

    411
  • Per Word Crossfade

    Per Word Crossfade

    20
  • Italic Sweep Scroll Text

    Italic Sweep Scroll Text

    77
  • Apple Hello Effect

    Apple Hello Effect

    692