For Tailwind CSS v3 docs, click here.

Morphing Text

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

通过 CLI 安装

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

手动安装

复制并粘贴以下代码:

MorphingText.vue

API

Prop 名称类型默认值描述
textsstring[][]Array of texts to morph between.
classstring""Additional classes for the container.
morphTimenumber1.5Animation execution time.
coolDownTimenumber0.5Animation dwell time.

感谢