Shader Reveal

Interactive liquid image reveal

shader-reveal-tw

Customize

50
250
0.5
0.75
1
0.55
2.2
30

Props

NameTypeDefaultDescription
frontImagestring""URL of the front (covering) image texture
backImagestring""URL of the back (revealed) image texture
mouseForcenumber50Strength of fluid impulse from mouse/touch interactions
cursorSizenumber250Effective radius of the cursor interaction area
resolutionnumber0.5Simulation resolution multiplier (0.25-1.0, lower = better performance)
isViscousbooleantrueEnable viscosity in the fluid simulation
viscousnumber30Viscosity strength (higher = thicker fluid)
iterationsViscousnumber24Number of viscosity solver iterations (higher = more accurate)
iterationsPoissonnumber28Number of pressure solver iterations (higher = more accurate)
dtnumber0.014Time delta for simulation step (lower = more stable)
BFECCbooleantrueEnable BFECC advection (higher quality, slightly slower)
isBouncebooleanfalseEnable boundary bounce behavior
autoDemobooleantrueEnable automatic motion when idle
autoSpeednumber0.55Speed of automatic cursor movement
autoIntensitynumber2.2Intensity multiplier for automatic interactions
takeoverDurationnumber0.25Transition time when user takes control (seconds)
autoResumeDelaynumber1200Delay before auto-demo resumes after user interaction (ms)
autoRampDurationnumber0.6Ramp-up time when auto-demo resumes (seconds)
revealStrengthnumber0.75How strongly the dye field controls the reveal effect
revealSoftnessnumber1Softness of the reveal edge transition
styleReact.CSSPropertiesundefinedInline styles applied to the container
classNamestring""Additional CSS classes for the container

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