Interactive custom cursor that dynamically changes its shape, color, and shadow styles based on the hovered background element.

Context-Aware Custom CSS Cursor

A lightweight implementation of a context-aware custom cursor. JavaScript tracks pointer coordinates via requestAnimationFrame to smoothly update the position of a fixed div element. The visual transformations — such as morphing into a sphere, an outline ring, or a gradient pin — are handled entirely by CSS general sibling combinators (~), ensuring hardware-accelerated transitions without flickering.

Technologies:
HTML CSS/SCSS JavaScript
Difficulty: Beginner
Browser Support (as of Jun 2026):
Chrome Chrome 36+ Edge Edge 12+ Firefox Firefox 16+ Safari Safari 9+
Features:
Context-Aware Cursor Hardware Acceleration Sibling Selectors
License: MIT
Minimalist interactive typography demo casting an extended dynamic text shadow that shifts direction and cycles HSL color hues based on mouse movements.

Interactive Directional HSL Text Shadow

A minimalist interactive typography snippet highlighting dynamic shadow projections. By tracking pointer positions over the document container, JavaScript maps the X and Y coordinates to the text’s CSS text-shadow offset properties. Simultaneously, the clientX cursor value is injected into an HSL color function, morphing the shadow’s tint seamlessly as it swings around the central heading.

Technologies:
HTML CSS/SCSS JavaScript
Difficulty: Beginner
Browser Support (as of Jun 2026):
Chrome Chrome 4+ Edge Edge 12+ Firefox Firefox 3.5+ Safari Safari 4+
Features:
Interactive Shadow HSL Color Mapping Content Editable
Code by: Sybil Rondeau Sybil Rondeau
License: MIT
Interactive card component featuring realistic 3D rotation, cursor tilt physics, and a responsive radial-gradient glare effect.

3D Tilt Card with Dynamic Glow

An interactive 3D card utilizing pointer tracking to calculate tilt angle and rotation dynamically. By measuring mouse position relative to the element’s center, the card tilts along the X and Y axes while scaling. A radial gradient overlay shifts concurrently, mimicking realistic surface glare and light reflections.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jun 2026):
Chrome Chrome 56+ Edge Edge 15+ Firefox Firefox 49+ Safari Safari 10+
Features:
3D Tilt Mouse Tracking Dynamic Glow
Code by: Mark Miro Mark Miro
License: MIT

See the Pen 3D Tilt Card with Dynamic Glow.

Interactive subscription card with dynamic vector eye-tracking, inertia horizontal dragging, elastic edge physics, and curved error messages.

Interactive Eye-Tracking Subscription Form

An advanced interactive subscription form starring a playful cartoon character with dual eye-tracking modes. Pupils react in real time, following the pointer position or snapping directly to the input text caret inside the email field. Dragging the character horizontally triggers fluid physics, rubber-band borders, and elastic drag resets, while error states morph the SVG mouth. (Requires: canvas-confetti.js)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Jun 2026):
Chrome Chrome 110+ Edge Edge 110+ Firefox Firefox 110+ Safari Safari 16.2+
Features:
Eye Tracking Caret Tracking Rubber-band Dragging
Code by: nana nana
License: MIT
A JavaScript class that dynamically updates a CSS box-shadow based on mouse cursor position to create a direction-aware lighting effect.

Direction-Aware CSS Box Shadow

Direction-Aware CSS Box Shadow provides a reusable JavaScript class (DirectionAwareShadow) that calculates the mouse’s offsetX and offsetY relative to an element’s center. It then dynamically updates the element’s inline box-shadow property to cast a shadow in the opposite (or same) direction of the cursor. The class is highly configurable, allowing developers to easily adjust blur, spread, color, and offset intensity.

Technologies:
HTML CSS/SCSS JavaScript/Babel
Difficulty: Intermediate
Browser Support (as of Jun 2026):
Chrome Chrome 4+ Edge Edge 12+ Firefox Firefox 4+ Safari Safari 3.1+
Features:
Direction Aware Dynamic Shadow Reusable Class
Code by: Mert Cukuren Mert Cukuren
License: MIT

See the Pen Direction-Aware CSS Box Shadow.

Geometric grid of dark triangles mask revealing a neon glowing background that dynamically tracks cursor movement.

Geometric Glowing Triangle Mask Grid

Geometric Glowing Triangle Mask Grid creates an interactive mesh overlay by dynamically calculating and appending CSS border triangles to mask a neon background. The layout binds a mouse-tracking #glow radial gradient to the cursor, while modern CSS @property interpolates color shifts directly in keyframe animations. However, running heavy JS-based DOM recalculations on window.onresize combined with moving massive layout-disrupting absolute positions like top/left on every mousemove can cause paint pipeline bottlenecks, which are easily alleviated by transforming with hardware-accelerated translate3d instead.

Technologies:
Pug SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of May 2026):
Chrome Chrome 85+ Edge Edge 85+ Firefox Firefox 128+ Safari Safari 16.4+
Features:
Geometric Masking Mouse Tracking @property Transitions
Code by: Mubanga Mubanga
License: MIT
Grid of portraits that flip in 3D like cubes based on the direction the mouse enters

Direction Aware 3D Cube Gallery

This is a Direction Aware 3D Cube Gallery. It tracks the exact angle at which a cursor enters or leaves an image tile, applying a responsive 3D cube rotation that follows the mouse’s trajectory. Its function is to provide highly contextual, physical feedback during interaction, making a flat image grid feel like an array of tangible, rotatable blocks.

Technologies:
Haml PostCSS Babel
Difficulty: Advanced
Browser Support (as of May 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
Direction Aware Hover 3D Transforms CSS Custom Properties Minimal DOM
Code by: Noel Delgado Noel Delgado
License: MIT
Creepy haunted house scene demonstrating a 2.5D parallax effect with fog and dynamic lighting tracking the cursor

Halloween 2.5D Parallax Shader

This is a Halloween 2.5D Parallax Shader. It utilizes Three.js and custom GLSL shaders to transform a flat 2D image into an interactive, volumetric scene with dynamic lighting, fog, and depth distortion. Its function is to provide a deeply immersive, narrative-driven hero section, elevating static artwork into an interactive spatial environment without requiring full 3D models. (Requires: three.js)

Technologies:
HTML SCSS JavaScript
Difficulty: Advanced
Browser Support (as of May 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
Custom Shaders Depth Mapping Parallax Effect Mouse Tracking
Code by: Karim Maaloul Karim Maaloul
License: MIT

See the Pen Halloween 2.5D Parallax Shader.

Dark screen with a circular glowing torchlight cutout revealing a dungeon map, demonstrating a cursor tracking mask effect

Flickering Torchlight Reveal Overlay

This is a Flickering Torchlight Reveal Overlay. It pairs a custom cursor with a dynamic radial mask to selectively expose underlying content. Its function is to restrict visibility to the immediate cursor vicinity, replacing open layouts with an exploratory, constrained interaction model.

Technologies:
HTML CSS JavaScript
Difficulty: Beginner
Browser Support (as of May 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 14+
Features:
Cursor Tracking CSS Masking Flicker Animation Dynamic Radius
Code by: Nyxorgos Nyxorgos
License: MIT
Dark themed Halloween landing page with a countdown timer, neon pink accents, and a skull illustration with glowing eyes

Halloween Countdown Hero Section

This is a Halloween Countdown Hero Section. It combines a functional date countdown with thematic, highly kinetic visual elements like dropping spiders and cursor-tracking skull eyes. Its function is to immediately immerse users in a seasonal campaign while driving urgency toward a specific deadline.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of May 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 14+
Features:
Countdown Timer Mouse Tracking Text Reveal Parallax Animation
License: MIT
Black vector footprints tracing a curved path across a white background, demonstrating a mouse tracking effect

Footstep Cursor Trailer

This is a Footstep Cursor Trailer. It draws a decaying trail of alternating left and right vector footprints that follow the user’s pointer. Its function is to add a highly stylized, playful layer of interaction to empty background spaces, gamifying the simple act of moving a mouse. (Requires: GSAP)

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome Chrome 51+ Edge Edge 79+ Firefox Firefox 52+ Safari Safari 10+
Features:
Cursor Tracking SVG Symbols Dynamic Rotation Intro Animation
License: MIT

See the Pen Footstep Cursor Trailer.

Interactive 3x3 grid of SVG circles revealing colorful animated shapes with a turbulent shadow effect tracking the mouse

Kinetic SVG Parallax Grid Mask

This is a Kinetic SVG Parallax Grid Mask. It utilizes mathematical cursor tracking to offset a vectorized masking layer, revealing a secondary layer of animated, stepped shapes beneath. Its function is to create a playful, exploratory spatial interaction that rewards user movement without relying on heavy WebGL contexts. (Requires: GSAP)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 12+
Features:
Parallax Masking Cursor Tracking Turbulence Filter
Code by: Tom Miller Tom Miller
License: MIT

See the Pen Kinetic SVG Parallax Grid Mask.

Interactive 3D image card with a WebGL RGB color split and pixel displacement hover effect

WebGL RGB Shift Image Card

This is a WebGL RGB Shift Image Card. It renders a high-resolution raster image onto a 3D geometric plane, applying dynamic visual distortions based on pointer intersection. Its function is to elevate standard portfolio grids or hero sections into highly tactile, immersive experiences, replacing standard CSS transitions with complex mathematical pixel manipulation. (Requires: Three.js, GSAP)

Technologies:
HTML SCSS Babel
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 12+
Features:
Custom Shaders RGB Split 3D Tilt Raycasting
Code by: TheFrost TheFrost
License: MIT

See the Pen WebGL RGB Shift Image Card.

Dark mode select dropdown menu with a cursor-tracking floating icon hover effect

Floating Icon Select Dropdown

This is a Floating Icon Select Dropdown. It replaces the native OS <select> element with a spatial, hardware-accelerated interface. Its primary function is to provide immediate, physical feedback: as the user interacts with the list, a custom icon detaches from the layout and physically tracks the cursor’s coordinates.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13+
Features:
Cursor Tracking Dynamic Height CSS Variables List Highlight
License: MIT

See the Pen Floating Icon Select Dropdown.

Interactive typography mask revealing a WebGL liquid distortion hover effect on a background image

WebGL Liquid Distortion Typography Mask

This is a WebGL Liquid Distortion Typography Mask. It uses fluid simulation to distort a background image, revealed only through a vector cutout. Its function is to transform standard text headers into deeply interactive, kinetic focal points. (Requires: OGL.js, TweenMax.js)

Technologies:
HTML SCSS Babel
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 12+
Features:
Fluid Simulation RGB Shift Custom Shaders Pointer Tracking
License: MIT
Video hero section with custom SVG polygon mask and layered stroke typography intersecting the media

Cinematic Masked Video Hero

This is a Cinematic Masked Video Hero. It layers solid and outlined typography over an SVG-clipped video element to create optical depth. Its function is to immediately capture attention on landing, breaking away from standard rectangular layouts through organic polygon masking and staggered motion. (Requires: gsap-js)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 90+ Edge Edge 90+ Firefox Firefox 89+ Safari Safari 15+
Features:
SVG Masking Layered Text Custom Cursor Intro Loader
Code by: Paul Roger Paul Roger
License: MIT

See the Pen Cinematic Masked Video Hero.

Before and after sneaker image comparison with a smooth interactive clip-path reveal effect driven by mouse tracking

Interactive Clip-Path Image Comparison

This is an Interactive Clip-Path Image Comparison. It juxtaposes two states of a single subject using a fluid, pointer-driven mask. Its function is to provide immediate, tangible proof of transformation (before/after), replacing static side-by-side galleries with a unified exploratory experience.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome Chrome 75+ Edge Edge 79+ Firefox Firefox 71+ Safari Safari 13+
Features:
Lerp Interpolation Clip-Path Mask Pointer Events
Code by: Juan Fuentes Juan Fuentes
License: MIT
Dark navigation menu with large text and floating images that follow the cursor, featuring a vertical parallax panning effect using JS.

Interactive Vertical Parallax Cursor Navigation

This is an Interactive Vertical Parallax Cursor Navigation. It combines large-scale typography with a dynamic image-reveal system. Its function is to provide an immersive, tactile menu experience for high-end creative portfolios, where the user’s cursor physically “steers” the list and uncovers visual content linked to each item.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13.1+
Features:
Cursor Image Tracking Vertical Panning WAAPI Animation Fluid Typography
Code by: Hyperplexed Hyperplexed
License: MIT
High-resolution urban photography transitioning with a radial zoom blur effect controlled by mouse coordinates in WebGL

Cinematic Zoom Blur Image Gallery

This is a Cinematic Zoom Blur Image Gallery. It utilizes custom GLSL fragment shaders and Three.js to create a high-fidelity transition between image textures. Its function is to provide an immersive navigational layer for visual portfolios, where spatial depth and radial blur replace standard linear crossfades. (Requires: Three.js, GSAP)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
Shader Transitions Mouse Tracking Smooth Lerp GPU Rendering
Code by: Kevin Levron Kevin Levron
License: MIT
Generative 3D parallax text effect reading 'Pure' in stacked colorful layers responding to mouse movement

Generative 3D Parallax Typography

This is a Generative 3D Parallax Typography component. It utilizes the css-doodle web component to automatically duplicate and stack text elements into a volumetric layout. Its function is to create a dynamic, mouse-reactive hero graphic without the need to write complex JavaScript event listeners or maintain heavy WebGL canvases. (Requires: css-doodle)

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 61+ Edge Edge 79+ Firefox Firefox 63+ Safari Safari 10.1+
Features:
Mouse Tracking Generative Art Parallax Effect Dynamic Scaling
Code by: yuanchuan yuanchuan
License: MIT
A dark-themed grid of six cards featuring icons; a soft glow follows the cursor, illuminating the edges and background of the cards.

Interactive Glowing Grid Cards

This snippet presents Interactive Glowing Grid Cards. It transforms a static grid of content into an immersive, tactile interface by having a soft, localized glow follow the user’s cursor. This effect illuminates both the background of the hovered card and the borders of adjacent cards, providing continuous, spatial feedback that enhances the premium feel of a dark-mode dashboard or feature list.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 60+ Safari Safari 11+ Firefox Firefox 55+ Edge Edge 79+
Features:
Mouse Tracking Dynamic Gradients Hover Glow Responsive Grid
Code by: Hyperplexed Hyperplexed
License: MIT

See the Pen Interactive Glowing Grid Cards.

A clean, minimalist web layout demonstrating a grey floating background box highlighting the hovered navigation link and article list items.

GSAP Magic Hover Areas

This is a GSAP Magic Hover Areas component. It creates an animated, floating background layer that physically tracks the user’s cursor or keyboard focus across different interactive elements on the page. It adds a cohesive, fluid spatial awareness to standard list items and navigation menus. (Requires: GSAP, Lodash.js, VanillaTilt.js)

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 49+ Safari Safari 10+ Firefox Firefox 52+ Edge Edge 79+
Features:
Floating Background GSAP Animation Focus Tracking Dynamic Resize
Code by: Ryan Yu Ryan Yu
License: MIT

See the Pen GSAP Magic Hover Areas.

Red glowing particle blob made of staggered circles following the mouse cursor on a dark background

Staggered Particle Blob Effect

This is a Staggered Particle Blob Effect. It clusters multiple DOM nodes into a cohesive, glowing entity that tracks cursor movement. Its function is to provide highly organic, procedural background interaction, replacing static canvases with an ecosystem of independent, mathematically linked elements. (Requires: AnimeJS)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome Chrome 79+ Edge Edge 79+ Firefox Firefox 71+ Safari Safari 13+
Features:
Cursor Tracking Staggered Animation Auto-simulation Blend Modes
License: MIT

See the Pen Staggered Particle Blob Effect.

Stacked text reading waves in orange and purple hues with a 3D perspective distortion following the mouse cursor

Interactive 3D Layered Text Wave Effect

This is an Interactive 3D Layered Text Wave Effect. It transforms a flat heading into a dynamic, multi-layered typographical stack that tracks cursor movement. Its function is to create immersive, interactive hero sections, replacing static typography with a playful spatial experience.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 36+ Edge Edge 12+ Firefox Firefox 16+ Safari Safari 9+
Features:
Mouse Tracking Linear Interpolation Auto-simulation
Code by: Rachel Smith Rachel Smith
License: MIT
Three colorful pricing cards with interactive 3D geometric shapes rotating on hover, presented in a swipeable carousel

Interactive 3D Pricing Card Slider

This is an Interactive 3D Pricing Card Slider. It integrates WebGL geometric renders into a standard product tier UI. Its function is to convert static pricing options into an engaging, tactile spatial experience. (Requires: three.js, swiper.js)

Technologies:
Pug SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
WebGL Rendering Mouse Tracking Carousel Slider
Code by: @BrawadaCom @BrawadaCom
License: MIT
Purple interactive button with a liquid wave deformation effect reacting to cursor proximity using SVG splines

Interactive Liquid SVG Wobble Button

This is an Interactive Liquid SVG Wobble Button. It maps cursor proximity to discrete vector points along an SVG path, deforming the shape in real-time. Its function is to transform a static call-to-action into a physical, reactive object. (Requires: svg.js, generative-utils.js, vector2d.js, debounce.js)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13.1+
Features:
Proximity Tracking Spline Interpolation Vector Math Debug Mode
License: MIT
Retro arcade interface showing flying playing cards against a parallax background, with a cursor slicing through them and a score counter.

Canvas Card Slicer Game

Modern web games often rely on bloated frameworks. This project demonstrates the raw capability of the native Canvas API combined with lightweight physics. It is a satisfying, tactile experience where the user’s cursor becomes a blade. By implementing a custom particle system and separating the collision logic (SAT.js) from the rendering, we achieve a high-performance arcade feel that runs smoothly even on modest hardware. (Requires: sat-js, mg-engine-js)

Technologies:
HTML SCSS Babel
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 60+ Safari Safari 11+
Features:
Physics Engine Collision Detection Parallax Background Sprite Animation
Code by: Meow Meow
License: MIT

See the Pen Canvas Card Slicer Game.

Dark UI showing two video thumbnails; a circular custom cursor follows the mouse, displaying a 'Play' icon dynamically over the content

Cinematic Context-Aware Video Cursor

Standard video controls are an interruption — a layer of clutter between the viewer and the content. We wanted to remove that barrier. This component transforms the user’s intent into the interface itself. By morphing the cursor into a context-aware controller, we achieve a symbiosis of navigation and action. It creates an immersive, cinematic experience where the UI dissolves, leaving only the story.

Technologies:
HTML CSS Babel
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 105+ Edge Edge 105+ Firefox Firefox 121+ Safari Safari 15.4+
Features:
Context Awareness Pointer Tracking Logic-less CSS State
Code by: Jhey Jhey
License: MIT
Digital trading card with 3D thickness and hover tilt effect featuring SVG character art against a clean background

Immersive 3D Tilt Card Modal

We accept flatness in web interfaces as a constraint, but it is merely a habit. This component breaks the fourth wall, transforming a static modal into a tangible, digital artifact. By coupling mouse physics with deep perspective, we create an interaction that feels less like clicking a link and more like holding a rare collectable. (Requires: gsap)

Technologies:
HTML SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13+
Features:
3D Parallax Mouse Tracking Dynamic Content Performance Optimized
Code by: Ryan LaBar Ryan LaBar
License: MIT

See the Pen Immersive 3D Tilt Card Modal.

A sleek travel slider showing a 3D tilted card of Scotland's Highlands, with blurred background and floating typography

3D Parallax Card Slider

This 3D Parallax Card Slider brings a tangible, high-fidelity feel to web galleries. It goes beyond simple sliding by implementing a physics-based tilt effect that reacts to mouse movement, giving each card weight and depth. The background adapts seamlessly to the active slide, creating an immersive atmosphere perfect for luxury travel sites or premium portfolios. (Requires: imagesLoaded)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
3D Tilt Effect Physics Interpolation State Management Image Preloader
Code by: Sikriti Dakua Sikriti Dakua
License: MIT

See the Pen 3D Parallax Card Slider.