An interactive WebGL image component with cover UV mapping and dynamic cursor fluid-distortion ripples using data textures.
pnpm dlx shadcn@latest add @spaceui/components-spaceui-fluid-distortion-imageimport { FluidDistortionImage } from '@/components/spaceui/fluid-distortion-image'
export default function Example() {
return (
<FluidDistortionImage
src="/images/art.jpg"
alt="Interactive fluid artwork"
aspectRatio={16 / 10}
distortionIntensity={0.04}
/>
)
}| Prop | Type | Default | Description |
|---|---|---|---|
src | string | — | Image source URL |
alt | string | Distorted surface image | Accessible image label |
aspectRatio | number | 16 / 10 | Fixed aspect ratio with object-cover mapping |
distortionIntensity | number | 0.03 | Strength of cursor ripple displacement |
relaxationSpeed | number | 0.94 | Decay rate of fluid velocity (0 to 1) |
radius | number | 0.18 | Radius of cursor impact area |
A dual-pass WebGL shader component featuring real-time Navier-Stokes fluid pressure simulation and Bayer 4x4 matrix ordered dithering crossfade.
ViewA WebGL image reveal component with dynamic pixel matrix wave and customizable neon accent border on scroll.
ViewAn interactive list component projecting a floating WebGL preview with inertial momentum mesh-warping and pixel block dissolve crossfading.
Viewpnpm dlx shadcn@latest add @spaceui/components-spaceui-ui