Pixelate Hover

Interactive pixelation effect with cursor-controlled reveal

Customize

Pixel Size
30
Falloff
1.00
Cursor Radius
350
Smoothing
0.05
Auto Speed
0.50
Auto Resume Delay (ms)
1500

Props

11
imagestring

URL of the image to display and pixelate

Default""
pixelSizenumber

Size of pixelation blocks - higher values create larger mosaic pixels

Default20
cursorRadiusnumber

Radius of the cursor effect area in pixels

Default200
falloffnumber

Softness of the transition falloff (0-1) - controls edge smoothness

Default0.5
mode"reveal" | "pixelate"

"reveal" starts pixelated and reveals on hover, "pixelate" starts normal and pixelates on hover

Default"reveal"
smoothingnumber

Mouse smoothing/dampening factor (0-1) - lower values create smoother, more delayed cursor following

Default0.15
autoDemoboolean

Enable automatic cursor animation when idle

Defaulttrue
autoSpeednumber

Speed of automatic cursor movement during auto-demo

Default0.5
autoResumeDelaynumber

Delay in milliseconds before auto-demo resumes after user interaction

Default1500
styleReact.CSSProperties

Inline styles applied to the container element

Defaultundefined
classNamestring

Additional CSS classes for the container

Default""

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