Text & Typography Fancy Stable

BoxReveal

Reveal animation where a solid color box slides left to right across content on viewport entry, unveiling it as it fades up into place underneath, triggered once via IntersectionObserver

Preview

Installation

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

Usage

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

<BoxReveal />

Examples

Basic Usage

Custom Colors

Change the reveal box color.

Slow Animation

Longer reveal duration.

Props

PropTypeDefaultDescription
color string"#5046e6"Color of the reveal box
duration number0.5Animation duration in seconds
delay number0.25Delay before animation starts in seconds

Slots

SlotDescription
childrenContent to reveal