Installation
Choose your framework. The registry installs one component file and its PixiJS dependency.
Installation unavailable
This preview is not assigned to the free or paid catalog. Installation is unavailable.
The registry command writes the component to src/lib/components/ui/FluidImageReveal.svelte and installs its dependencies.
The registry command writes the component to src/components/ui/FluidImageReveal.tsx and installs its dependencies.
The registry command writes the component to src/components/ui/FluidImageReveal.vue and installs its dependencies.
Overview
Fluid Image Reveal uses the same curl, vorticity, divergence, pressure, and advection pipeline as Fluid Simulation, with transported dye serving as the reveal mask.
A softly thresholded density field reveals the second fitted image while pointer movement continuously injects motion and mask density.
Basic usage
The shader fills its parent. Your layout decides whether that parent is a card, hero, or viewport.
- Move the pointer across the canvas to reveal the second image.
- The first pointer move establishes history without injecting a jump from the canvas origin.
- Higher pressure iterations and target resolutions improve fidelity but increase GPU work.
Component API
Types below match the selected Svelte component.
Types below match the selected React component.
Types below match the selected Vue component.