Container Text Flip
A container that flips through words, animating the width.
better
Installation
Run the following command
npx shadcn@latest add https://ui.aceternity.com/registry/container-text-flip.json
Examples
Standard
better
Hero section with animation
Make your websites look 10x better
better
Props
Prop | Type | Default | Description |
---|---|---|---|
words | string[] | ["better", "modern", "beautiful", "awesome"] | Array of words to cycle through in the animation |
interval | number | 3000 | Time in milliseconds between word transitions |
className | string | - | Additional CSS classes to apply to the container |
textClassName | string | - | Additional CSS classes to apply to the text |
animationDuration | number | 700 | Duration of the transition animation in milliseconds |
Build websites faster and 10x better than your competitors with Aceternity UI Pro
With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.
Manu is the man! He is the best front-end developer I have worked with.
He took the requirements and quite literally ran with them. We are super happy with the result and product we go...
John Shahawy
Founder at Rogue and Moonbeam