Media Fancy Stable

NoiseReveal

WebGL image reveal with a Perlin-noise dissolve mask, contracting radial gradient, and wave displacement

Preview

Installation

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

Usage

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

<NoiseReveal />

Examples

Basic Usage

Toggle the reveal manually with the revealed prop.

Props

PropTypeDefaultDescription
src *string-Image URL
alt string-Accessible label for the image
trigger "view" | "manual""view"Reveal trigger: "view" = on viewport entry, "manual" = via revealed prop
revealed booleanfalseManual reveal state (used with trigger="manual"; also allows re-hiding)
duration number1.5Reveal animation duration in seconds
delay number0Delay before reveal in seconds (trigger="view")