Animations
FlipWords
Cycle through words with a 3D flip animation using Framer Motion.
Quick Preview
Design is beautiful
Installation
npm install framer-motion
// Copy component fromsrc/components/animations/FlipWords.tsx
Usage
import FlipWords from '@/components/animations/FlipWords'<p className="text-4xl font-bold">We build{' '}<FlipWordswords={['fast', 'modern', 'scalable']}className="text-primary"intervalMs={2000}/>{' '}products.</p>
Examples
Fast Flip
React
Emoji Flip
๐
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
words* | string[] | - | Words to cycle through |
intervalMs | number | 2500 | Time between flips in ms |
className | string | - | Additional CSS classes |