Mouse Pixelation

A pointer-led WebGL pixelation effect that reveals image detail through cursor movement for portfolios, campaigns, and technical hero surfaces.

Published On: June 4, 2026
Last Updated: August 17, 2026
Three.js@react-three/fiber@react-three/postprocessingGSAP
Mouse Pixelation

Overview

Mouse Pixelation reveals content through cursor movement. It makes the act of looking the first interaction.

Use it when pointer movement should make the hero feel discovered: portfolio imagery, technical visuals, or campaign surfaces where the reveal adds meaning.

The risk in production is pointer dependence. The final image and message must be available when hover is unavailable.


Install Command

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Usage Code

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Component Code

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Example Production Use Case

Use this as WebGL production guidance. Verify the shipped source, rendering stack, dependency list, shader assets, resource disposal, pause/offscreen behavior, DPR strategy, poster fallback, and reduced-motion state before relying on exact props, defaults, imports, or installation steps.


Best Used For

  • Pointer-led hero surfaces where interaction reveals image detail without hiding the message.
  • Creative portfolios where the cursor can become part of the looking experience.
  • Technical brand pages where pixelation supports the visual language.

Not For

Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.


Performance Budget

Cap DPR at 1.0 on touch/mobile and up to 1.5 on mid-range desktop. Pause Mouse Pixelation offscreen and in hidden tabs, reduce postprocessing before shipping, and keep texture sizes controlled.


Accessibility and Mobile

Keep meaningful content in HTML outside the canvas. On mobile, reduce shader quality and switch to a poster if the scene cannot hold frame rate.


Common Mistakes

  • Requiring pointer movement for the page to make sense on touch devices.
  • Pixelating critical text or controls instead of imagery.
  • Forgetting the clean still image state for reduced motion and mobile.

Changelog

v1.1.0

Jul 22, 2026
Added reduced-motion notice

Props

PropTypeDefaultDescription
gridSizenumber35Controls the pixel/grid resolution across all three versions.
mouseInteractionbooleantrueEnables cursor-driven pixel movement, trails, and cube rotation.
lerpnumber0.1Controls the smoothing amount for mouse-following motion.
backgroundColorstring#000000Canvas background color for the V1 pixel-circle version.
cubeSizenumber1Scales the cube in the V3 enhanced pixel cube version.
gridEmbossingnumber1Controls the extruded grid depth in the V3 enhanced pixel cube version.

Frequently Asked Questions

What GPU budget should Mouse Pixelation use on mobile and desktop?

The pixelation samples the image as the cursor moves, so cap DPR at 1.0 on mobile and 1.5 on desktop and keep the source texture appropriately sized. Update the effect around the pointer rather than the whole frame where possible. Note that the core interaction is pointer-based, which shapes the mobile story.

Request a Custom WebGL Animation

Need a custom effect? Tell us what to create.