Shaders
3 / 4

Dot Distortion Shader

An interactive canvas shader with a grid of dots that distort when the mouse passes over. Dots have breathing animations and random glow pulses.

New components and templates every month

Build your next project in minutes, not hours.

We are a team of developers who are passionate about creating web apps that make you feel like you're in the future.

A grid of dots renders on canvas. Each dot has position, velocity, brightness, and glow properties. When the mouse moves near a dot, it pushes away from the cursor using physics-based calculations.

Dots slowly return to their original positions using spring-like motion controlled by the returnSpeed prop. Individual dots randomly pulse with higher glow intensity, creating a breathing or twinkling effect across the grid.

Props control dot gap, size, colors, mouse influence radius, distortion strength, and animation speeds. The component uses useCallback for optimized event handlers and cleanup.

Works well for tech product landing pages, AI/ML product sites, or any application wanting an interactive, futuristic background that responds to user movement.

Included with All-Access

One payment unlocks the code for this block and every other block, template and page.

Get All-Access

About this block

A grid of dots renders on canvas. Each dot has position, velocity, brightness, and glow properties. When the mouse moves near a dot, it pushes away from the cursor using physics-based calculations.

Dots slowly return to their original positions using spring-like motion controlled by the returnSpeed prop. Individual dots randomly pulse with higher glow intensity, creating a breathing or twinkling effect across the grid.

Props control dot gap, size, colors, mouse influence radius, distortion strength, and animation speeds. The component uses useCallback for optimized event handlers and cleanup.

Works well for tech product landing pages, AI/ML product sites, or any application wanting an interactive, futuristic background that responds to user movement.

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.