Skip to content
Text & Typography Fancy Stable

ContainerTextFlip

.md

Text container that cycles through words with per-character blur animation

Available for Svelte 5, React, and Vue 3.

Preview

Installation

pnpm add fancy-ui-svelte
import { ContainerTextFlip } from "fancy-ui-svelte";

Usage

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

<ContainerTextFlip words={["better","faster","stronger","beautiful"]} />

Examples

Basic Usage

Custom Words

Fast Interval

Shorter flip interval.

Props

PropTypeDefaultDescription
words string[]["better","modern","beautiful","awesome"]Array of words to cycle through
interval number3000Time between word changes in ms
animationDuration number700Per-character animation duration in ms
textClass string""CSS classes for the text content span