Text Flip

Free

Preview live, install via shadcn or copy the source.

Installation

Install via shadcn

This will install the component and its dependencies automatically.

Usage

text-flip-usage.tsxTSX

Props

NameTypeDefaultRequiredDescription
childrenReact.ReactNode[]YesItems to flip through (strings or nodes).
classNamestringNoOptional wrapper class.
intervalnumber2NoSeconds between flips.
transitionTransition{ duration: 0.45, ease: [0.22, 1, 0.36, 1] }NoFramer Motion transition for flip.
variantsVariantsNoOverride the default flip variants.
onIndexChange(index: number) => voidNoCallback when the current index changes.
triggerbooleantrueNoStart/stop flipping.
modeAnimatePresenceProps['mode']waitNoAnimatePresence rendering mode.
perspectivenumber800NoCSS perspective (px) applied to container for 3D flip.
depthnumber10NoTransform-origin z-offset (px) for depth of flip.
axis'x' | 'y'xNoFlip axis. x = vertical flip, y = horizontal flip.
© reframe/ui 2026Built by @thommysart
More in Text Animations