Text & Typography Fancy Stable

ColourfulText

Per-character text animation where each glyph transitions to a new color from a shuffled palette, staggered across characters and reshuffling automatically every 5 seconds using pure CSS transitions

Preview

Installation

pnpm add fancy-ui-svelte
import { ColourfulText } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { ColourfulText } from 'fancy-ui-svelte';
</script>

<ColourfulText />

Examples

Basic Usage

Custom Colors

Define a custom color palette.

Transition Speed

Control color change speed.

Longer Text

Props

PropTypeDefaultDescription
text *string-Text to animate
colors string[][10 preset colors]Array of colors to cycle through
startColor string"rgb(255, 255, 255)"Initial color before animation
duration number0.5Transition duration in seconds for each character