Container Text Flip

A container that flips through words, animating the width.

better

Installation

Run the following command

npx shadcn@latest add @aceternity/container-text-flip

Examples

Standard

better

Hero section with animation

Make your websites look 10x

better

Props

PropTypeDefaultDescription
wordsstring[]["better", "modern", "beautiful", "awesome"]Array of words to cycle through in the animation
intervalnumber3000Time in milliseconds between word transitions
classNamestring-Additional CSS classes to apply to the container
textClassNamestring-Additional CSS classes to apply to the text
animationDurationnumber700Duration of the transition animation in milliseconds

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

200+ templates and blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.