Colourful Text

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

Install using CLI

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

Install Manually

Copy and paste the following code

ColourfulText.vue

API

Prop NameTypeDefaultDescription
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.

Credits