Morphing Text

This MorphingText component dynamically transitions between an array of text strings, creating a smooth, engaging visual effect.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/morphing-text.json"

Install Manually

Copy and paste the following code

MorphingText.vue

API

Prop NameTypeDefaultDescription
textsstring[][]Array of texts to morph between.
classstring""Additional classes for the container.
morphTimenumber1.5Animation execution time.
coolDownTimenumber0.5Animation dwell time.

Credits