Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Container Text Flip

A container that flips through words, animating the width.

Open in

better

Installation

Run the following command

npx shadcn@latest add https://ui.aceternity.com/registry/container-text-flip.json

Examples

Standard

Open in

better

Hero section with animation

Open in

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

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.

Go Pro
I've been working with Manu for a couple of months now and I can't express enough how impressed I am with his talent. Manu's JavaScript/React web UI programming skills are through the roof. He's he...

Tony Pujals

Founder at Fantastic Realms, Tech Lead at Google

A product by Aceternity
Building in public at @mannupaaji