Pixelate Hover

Interactive pixelation effect with cursor-controlled reveal

pixelate-hover-tw

Customize

30
350
1
0.05
0.5
1500

Props

NameTypeDefaultDescription
imagestring""URL of the image to display and pixelate
pixelSizenumber20Size of pixelation blocks - higher values create larger mosaic pixels
cursorRadiusnumber200Radius of the cursor effect area in pixels
falloffnumber0.5Softness of the transition falloff (0-1) - controls edge smoothness
mode"reveal" | "pixelate""reveal""reveal" starts pixelated and reveals on hover, "pixelate" starts normal and pixelates on hover
smoothingnumber0.15Mouse smoothing/dampening factor (0-1) - lower values create smoother, more delayed cursor following
autoDemobooleantrueEnable automatic cursor animation when idle
autoSpeednumber0.5Speed of automatic cursor movement during auto-demo
autoResumeDelaynumber1500Delay in milliseconds before auto-demo resumes after user interaction
styleReact.CSSPropertiesundefinedInline styles applied to the container element
classNamestring""Additional CSS classes for the container

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