Webcam Pixel Grid

A real-time webcam pixel grid effect, perfect for pixel art and retro aesthetics.

Introducing AI SaaS Template →

Ship stunning landing pages faster.

Build amazing landing pages with component blocks and templates from aceternity, without having to worry about styling and animations.

Installation

Run the following command

npx shadcn@latest add @aceternity/webcam-pixel-grid

Props

PropTypeDefaultDescription
gridColsnumber64Number of columns in the grid
gridRowsnumber48Number of rows in the grid
maxElevationnumber15Maximum elevation for motion detection
motionSensitivitynumber0.4Motion sensitivity (0-1)
elevationSmoothingnumber0.1Smoothing factor for elevation transitions
colorMode"webcam" | "monochrome""webcam"Color mode: 'webcam' uses actual colors, 'monochrome' uses single color
monochromeColorstring"#00ff88"Base color when in monochrome mode
backgroundColorstring"#0a0a0a"Background color
mirrorbooleantrueWhether to mirror the webcam feed
gapRationumber0.1Gap between cells (0-1, fraction of cell size)
invertColorsbooleanfalseInvert the colors
darkennumber0Darken factor (0-1, 0 = no darkening, 1 = fully dark)
borderColorstring"#ffffff"Border color for cells
borderOpacitynumber0.08Border opacity (0-1)
classNamestring-Additional class name
onWebcamError(error: Error) => void-Callback when webcam access is denied
onWebcamReady() => void-Callback when webcam is ready

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

200+ templates and blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.