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
















