For Tailwind CSS v3 docs, click here.

Colourful Text

A text component with various colours, filter and scale effects.

通过 CLI 安装

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

手动安装

复制并粘贴以下代码:

ColourfulText.vue

API

Prop 名称类型默认值描述
textstring"black"The text string to be rendered with colorful animated characters. Each character will be individually animated with color transitions and motion effects.
colorsstring[][ "rgb(131, 179, 32)", "rgb(47, 195, 106)", "rgb(42, 169, 210)", "rgb(4, 112, 202)", "rgb(107, 10, 255)", "rgb(183, 0, 218)", "rgb(218, 0, 171)", "rgb(230, 64, 92)", "rgb(232, 98, 63)", "rgb(249, 129, 47)", ]The text use colors.
startColorstring"rgb(255,255,255)"The char start color.
durationnumber5The animation duration time in seconds.

感谢