Text & Typography Fancy Stable

LineReveal

Staggered line-by-line text reveal with lines computed by pretext instead of DOM splitting

Preview

Installation

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

Usage

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

<LineReveal />

Examples

Basic Usage

Resize the container — lines re-wrap without replaying the animation.

Custom Stagger & Duration

Slow down the per-line stagger and transition.

Props

PropTypeDefaultDescription
text *string-Text to reveal
font string'600 32px "Helvetica Neue", Helvetica, Arial, sans-serif'CSS font shorthand used for both measurement and rendering
lineHeight number1.2 × font sizeLine height in pixels
stagger number0.08Delay between lines in seconds
duration number0.7Animation duration per line in seconds
delay number0Initial delay in seconds
once booleantrueAnimate only on first viewport entry
class string-Additional CSS classes