MorphoText Flip

Animated text component that flips between words with smooth transitions.

Loading...

Installation

npx shadcn@latest add @scrollxui/morphotextflip 

Usage

import { MorphoTextFlip } from '@/components/ui/morphotextflip';
<MorphoTextFlip
  words={['remarkable', 'bold', 'scalable', 'beautiful']}
  textClassName='text-4xl md:text-7xl text-rose-600 dark:text-rose-400 font-bold mt-1'
  animationType='flipY'
/>

Examples


SlideUp Variant

Loading...

FadeScale Variant

Loading...

SlideRotate Variant

Loading...

Elastic Variant

Loading...

Changelog

19-11-2025, Updated MorphoTextFlip

  • Refined width auto-measure system for smoother container resizing and stability.
  • Improved animation variant logic and unified className handling for cleaner structure.

API Reference

MorphoTextFlip

The MorphoTextFlip component renders animated text component that flips between words with smooth transitions.

Props

PropertyTypeDefaultDescription
wordsstring[]required
Words to animate through.
intervalnumber
Time between word changes (ms).
animationType"slideUp" | "fadeScale" | "flipY" | "slideRotate" | "elastic"
Transition animation style.
animationDurationnumber
Duration of each animation (ms).
classNamestring
Class for the outer container.
textClassNamestring
Class for the animated text element.

Built withby Ahdeetai.