Shader Reveal

Interactive liquid image reveal

shader-reveal-tw

Customize

Interaction

50
250
0.5
0.75
1

Auto Demo

0.55
2.2

Fluid Simulation

30

Props

frontImagestring

URL of the front (covering) image texture

Default:""
backImagestring

URL of the back (revealed) image texture

Default:""
mouseForcenumber

Strength of fluid impulse from mouse/touch interactions

Default:50
cursorSizenumber

Effective radius of the cursor interaction area

Default:250
resolutionnumber

Simulation resolution multiplier (0.25-1.0, lower = better performance)

Default:0.5
isViscousboolean

Enable viscosity in the fluid simulation

Default:true
viscousnumber

Viscosity strength (higher = thicker fluid)

Default:30
iterationsViscousnumber

Number of viscosity solver iterations (higher = more accurate)

Default:24
iterationsPoissonnumber

Number of pressure solver iterations (higher = more accurate)

Default:28
dtnumber

Time delta for simulation step (lower = more stable)

Default:0.014
BFECCboolean

Enable BFECC advection (higher quality, slightly slower)

Default:true
isBounceboolean

Enable boundary bounce behavior

Default:false
autoDemoboolean

Enable automatic motion when idle

Default:true
autoSpeednumber

Speed of automatic cursor movement

Default:0.55
autoIntensitynumber

Intensity multiplier for automatic interactions

Default:2.2
takeoverDurationnumber

Transition time when user takes control (seconds)

Default:0.25
autoResumeDelaynumber

Delay before auto-demo resumes after user interaction (ms)

Default:1200
autoRampDurationnumber

Ramp-up time when auto-demo resumes (seconds)

Default:0.6
revealStrengthnumber

How strongly the dye field controls the reveal effect

Default:0.75
revealSoftnessnumber

Softness of the reveal edge transition

Default:1
styleReact.CSSProperties

Inline styles applied to the container

Default:undefined
classNamestring

Additional CSS classes for the container

Default:""

Demo image by Alex Suprun @ unsplash.com, not part of the React Bits Pro offer.