Skip to content
Text & Typography Fancy Stable

BoxReveal

.md

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

Available for Svelte 5, React, and Vue 3.

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
children Content to reveal