Dark digital background where grid cells light up in neon teal under the cursor and slowly fade out, creating a cybernetic trail effect

Interactive Neon Grid Trail

This Interactive Neon Grid Trail creates a sleek, cybernetic atmosphere ideal for tech portfolios or futuristic landing pages. It utilizes the HTML5 Canvas API to render a grid of invisible squares that light up in neon teal upon interaction. The effect features a “memory” mechanic where the illuminated cells hold their charge for a moment before gracefully fading back into the darkness, creating a satisfying trail behind the user’s cursor.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 4+ Edge Edge 12+ Firefox Firefox 3.6+ Safari Safari 4+
Features:
Mouse Tracking Fading Trails Radial Gradient Strokes Responsive Grid
Code by: Gaurav Gajjar Gaurav Gajjar
License: MIT

See the Pen Interactive Neon Grid Trail.

Portrait image rendered on HTML5 Canvas, split into a grid where pixels distort and flow liquid-like around the mouse cursor

Interactive Canvas Liquid Image Distortion

This Interactive Canvas Liquid Image Distortion transforms a static image into a playful, fluid surface. By subdividing the image into a grid of tiny cells, the script manipulates the texture coordinates of each cell in response to mouse movement. The result is a “jelly-like” or refractive glass effect where the image appears to warp and ripple under the user’s cursor.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome Chrome 4+ Edge Edge 12+ Firefox Firefox 3.6+ Safari Safari 4+
Features:
Canvas API Grid System Mouse Interaction Image Slicing
Code by: Frank Frank
License: MIT