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
Thumbnail grid expanding a selected image into a full-screen detail view, demonstrating continuous spatial interpolation

Fluid Shared Element Image Gallery

This is a Fluid Shared Element Image Gallery. It connects a thumbnail grid to a full-screen detail view through continuous spatial morphing. Its function is to eliminate context loss, carrying the user’s visual focus seamlessly from a macro overview to a micro inspection.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome Chrome 36+ Edge Edge 79+ Firefox Firefox 48+ Safari Safari 13.1+
Features:
FLIP Animation Shared Element Hardware Accelerated
Code by: pretender pretender
License: MIT
Fullscreen image gallery grid with a mini-map overlay, demonstrating dynamic 2D spatial panning

Spatial Grid Image Explorer

This is a Spatial Grid Image Explorer. It maps a collection of high-resolution images onto an infinite 2D canvas, allowing users to pan spatially rather than scrolling linearly. Its function is to provide an immersive, map-like navigation experience for visual portfolios, shifting the paradigm from vertical feeds to omnidirectional exploration.

Technologies:
HTML SCSS Babel
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13.1+
Features:
Spatial Panning Mini-map Keyboard Navigation Zoom Controls
Code by: Plural DSGN Plural DSGN
License: MIT

See the Pen Spatial Grid Image Explorer.

Image gallery demonstrating a smooth fullscreen zoom effect leveraging the native View Transitions API

Fullscreen View Transition Gallery

This is a Fullscreen View Transition Gallery. It transforms standard grid images into a focused, screen-filling view upon interaction. Its function is to provide seamless, native visual continuity without relying on heavy third-party animation libraries or complex transform calculations.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome Chrome 111+ Edge Edge 111+ Firefox Firefox 131+ Safari Safari 18+
Features:
View Transitions Image Zoom OKLCH Colors
Code by: Descamps Descamps
License: MIT
Thumbnail gallery layout demonstrating a seamless native cross-fade effect between images using the View Transitions API

Native Cross-Fade View Transition Gallery

This is a Native Cross-Fade View Transition Gallery. It updates a central image source triggered by thumbnail interactions. Its function is to smooth out abrupt visual DOM updates using the browser’s built-in rendering engine, entirely eliminating the need for external animation payloads or CSS opacity toggles.

Technologies:
HTML CSS JavaScript
Difficulty: Beginner
Browser Support (as of Apr 2026):
Chrome Chrome 111+ Edge Edge 111+ Firefox Firefox 131+ Safari Safari 18+
Features:
View Transitions Cross-Fade Event Delegation Feature Detection
Code by: Chen Hui Jing Chen Hui Jing
License: MIT
Asymmetric photo gallery with custom organic SVG edges and a full-screen lightbox modal using CSS Grid and JavaScript

Asymmetric SVG Mask Grid Gallery

This is an Asymmetric SVG Mask Grid Gallery. It builds a complex, interlocking masonry-style mosaic using CSS Grid areas, applying organic SVG masks to each thumbnail. Its primary function is to break free from rigid, boxy layouts, offering a highly stylized, interactive photo showcase complete with a native JavaScript lightbox modal.

Technologies:
HTML SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome Chrome 120+ Edge Edge 120+ Firefox Firefox 53+ Safari Safari 15.4+
Features:
SVG Masks Grid Areas Lightbox Modal
Code by: yoksel yoksel
License: MIT
Responsive masonry-style photo gallery with a blurred glassmorphism lightbox overlay and scale hover effects

Grid Lightbox Gallery Effect

This is a CSS Grid Lightbox Gallery Effect. It structures an asymmetric image grid that expands individual photos into a full-screen, blurred overlay upon interaction. Its primary function is to focus user attention on a single visual asset while maintaining the context of the underlying page through transparency.

Technologies:
HTML SCSS JavaScript
Difficulty: Beginner
Browser Support (as of Mar 2026):
Chrome Chrome 76+ Edge Edge 79+ Firefox Firefox 103+ Safari Safari 13+
Features:
Dense Grid Focus Trap
License: MIT

See the Pen Grid Lightbox Gallery Effect.

Adaptive image gallery grid with fluid flexbox rows and smooth fade-in lazy loading

Responsive Fluid Photo Gallery Grid

This is a Responsive Fluid Photo Gallery Grid. It organizes varied aspect-ratio images into justified rows without cropping essential content. Its primary function is to optimize visual space, ensuring edge-to-edge alignment while deferring offscreen asset loading for strict performance control. (Requires: lazysizes, object-fit-images)

Technologies:
Pug Sass JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 13+
Features:
Fluid Grid Lazy Loading Smart Scaling
License: MIT
A horizontal scrolling gallery of landscape and nature photographs with a dark background, showcasing an internal parallax sliding effect.

Draggable Image Track Parallax

This is a Draggable Image Track Parallax component. It replaces standard scrollbars with a custom, click-and-drag horizontal interface. Its function is to provide a highly kinetic, app-like browsing experience for image galleries, featuring an internal parallax effect where the images pan slightly inside their frames as the entire track moves.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
Drag and Drop Internal Parallax Web Animations API Touch Support
License: MIT

See the Pen Draggable Image Track Parallax.

Interactive floating image gallery with smooth mouse-tracking parallax and hover-reveal tiles using Web Animations API.

Mouse-Reactive Floating Image Gallery

This is a Mouse-Reactive Floating Image Gallery. It places an oversized grid of visual assets behind the viewport, hidden by the overflow. Its function is to provide an immersive, explorative navigation experience where the user’s cursor physically steers the scene across a scattered landscape of content.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 36+ Edge Edge 12+ Firefox Firefox 48+ Safari Safari 9+
Features:
Mouse Tracking Smooth Panning Hover Reveal Dynamic Layout
Code by: Hyperplexed Hyperplexed
License: MIT
A full-screen WebGL gallery with large photographs that distort with a sine wave effect on mouse hover and a radial blur based on scroll speed.

Twisted Wave GLSL Image Gallery

This is a Twisted Wave GLSL Image Gallery. It’s a high-performance, full-screen WebGL experience that uses custom shaders to create sophisticated visual effects. Its function is to transform a standard image carousel into a cinematic journey with two distinct interactions: a localized sine-wave distortion on mouse hover and a global radial blur that intensifies with the speed of the scroll. (Requires: Three.js, GSAP, Locomotive Scroll, Maku.js, imagesLoaded)

Technologies:
HTML CSS JavaScript GLSL Three.js
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
GLSL Shaders Mouse-Hover Distortion Scroll-Based Post-Processing Locomotive Scroll
Code by: alphardex alphardex
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
Minimalist 3D book mockup with interactive flipping pages displaying high-resolution photography on a textured background.

Interactive 3D Flip Book Gallery

This is an Interactive 3D Flip Book Gallery. It simulates a physical book structure where each element acts as a double-sided page. Its function is to showcase images through spatial depth, replacing standard flat carousels with a tactile flipping mechanic.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 85+ Edge Edge 85+ Safari Safari 16.4+ Firefox Firefox 128+
Features:
3D Perspective Page Turning Stacked Layout Auto-Closure
Code by: Daniel Muñoz Daniel Muñoz
License: MIT
A masonry grid of bird photographs that tilt on hover, with one card expanding to reveal full-screen content

Tilt Grid Content Reveal

This is a Tilt Grid Content Reveal. It transforms a standard masonry image gallery into a highly interactive, spatial experience. Its function is to provide an engaging browsing interface where hovering induces physical 3D tilt, and clicking smoothly expands the thumbnail into a full-screen presentation, completely immersing the user in the selected content. (Requires: GSAP, charming.js, masonry.js, imagesloaded.js)

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:
3D Hover Tilt Grid Expansion Staggered Typography Scroll to Top
Code by: Sebi Sebi
License: MIT

See the Pen Tilt Grid Content Reveal.

A photograph shattering into hundreds of square fragments that fly toward the camera, revealing another image beneath

Shattering Image Gallery Transition

This is a Shattering Image Gallery Transition. It utilizes the WebGL API via Three.js to deconstruct 2D images into a matrix of 3D particles. Its function is to replace standard fade or slide slideshows with a highly cinematic, physics-based explosion effect, transitioning between photographs by blowing the current image apart to reveal the next one underneath. (Requires: ThreeJS, 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:
WebGL Shaders Instanced Rendering Scroll Navigation Mouse Parallax
Code by: Kevin Levron Kevin Levron
License: MIT
Dark themed responsive CSS grid layout with SVG icons where an active card expands into full width smoothly

Smooth View Transition Grid Cards

This is a Smooth View Transition Grid Cards component. It transforms a standard CSS Grid of cards into an interactive, animated gallery. Its function is to elegantly expand a selected item to full width, smoothly reflowing the remaining siblings using native browser rendering instead of complex JavaScript math.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 111+ Edge Edge 111+ Firefox Firefox 128+ Safari Safari 18+
Features:
View Transitions Dynamic Grid Fallback Support
Code by: Chris Coyier Chris Coyier
License: MIT
Dark themed 3D coverflow image gallery with floor reflections and interactive zoom effect

Interactive 3D Coverflow Gallery

This is an Interactive 3D Coverflow Gallery. It organizes visual media into a spatial environment. Its function is to replace flat grids with depth-based navigation, using mathematical inverse transformations to zoom into selected items seamlessly.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
Inverse Transform Zoom Box Reflection Dynamic DOM Generation
Code by: Julien Sulpis Julien Sulpis
License: MIT
Web page with a grid of images showcasing a smooth 3D tilt and translation effect as the user scrolls down, with a scroll-to-top button visible

Smooth 3D Scroll-Driven Reveal

This is a Smooth 3D Scroll-Driven Reveal. It replaces the native scroll behavior with a custom, momentum-based scrolling engine that orchestrates complex 3D transforms. Its function is to create a gallery experience where images feel weightless, tilting and translating in 3D space based on their velocity and position relative to the viewport. (Requires: imagesloaded.js)

Technologies:
JavaScript HTML CSS
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11.1+
Features:
3D Transforms Smooth Scroll Intersection Observer Parallax
Code by: Sebi Sebi
License: MIT

See the Pen Smooth 3D Scroll-Driven Reveal.

4x4 image grid with a central magnified pop-up overlay appearing on long-press, demonstrating a tactile preview interaction

Tactile Long Press Image Grid

In a world obsessed with speed, we often forget the power of distinct intent. The standard “click” is binary and abrupt. This component introduces a moment of pause — a “breath” — allowing the user to peek into content without committing to a navigation event. By utilizing the “long press” (or click-and-hold) mechanic, we bridge the gap between desktop precision and mobile intuition, creating a gallery experience that feels organic and responsive to the user’s curiosity.

Technologies:
HTML CSS JavaScript
Difficulty: Beginner
Browser Support (as of Feb 2026):
Chrome Chrome 57+ Edge Edge 16+ Firefox Firefox 52+ Safari Safari 10.1+
Features:
Long Press Interaction Responsive Grid Touch Support Instant Preview
Code by: Valentin Valentin
License: MIT

See the Pen Tactile Long Press Image Grid.

Image gallery showing a large main display with a row of clickable thumbnails below. On mobile, the thumbnails transform into small dots with hover previews.

Adaptive Thumbnail Carousel

This Adaptive Thumbnail Carousel is a versatile gallery component that seamlessly bridges the gap between desktop and mobile UX. On desktop, it presents a traditional filmstrip of thumbnails. On mobile, it intelligently morphs into a dot-navigation style, where hovering (or tapping) a dot reveals a floating preview of the image. The carousel handles state synchronization, smooth scrolling, and accessibility, making it a robust choice for e-commerce product pages or portfolios.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 69+ Edge Edge 79+ Firefox Firefox 63+ Safari Safari 13.1+
Features:
Responsive Design Scroll Snapping Keyboard Navigation Thumbnail Preview
Code by: Full on CSS Full on CSS
License: MIT

See the Pen Adaptive Thumbnail Carousel.

Split-screen interface where the left column images slide and crossfade in sync with the scrolling right column, featuring progress indicators.

Scroll-Driven Image Swapper

This Scroll-Driven Image Swapper demonstrates the bleeding edge of web animation. It uses the native CSS Scroll-driven Animations API to create a complex parallax-like effect where two columns of different heights scroll in sync. As you scroll, the images in the shorter column slide and crossfade to match the context of the taller column. Crucially, the code implements a Progressive Enhancement strategy: it checks for native browser support and falls back to GSAP ScrollTrigger for browsers that haven’t implemented the spec yet. (Requires: GSAP, ScrollTrigger)

Technologies:
HTML CSS Babel
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome Chrome 115+ Firefox Edge 115+. Firefox/Safari (via GSAP Polyfill)
Features:
Scroll-Linked Animation Image Crossfade Polyfill Strategy Responsive Grid
Code by: Jhey Tompkins Jhey Tompkins
License: MIT

See the Pen Scroll-Driven Image Swapper.

Vintage green-tinted web gallery featuring an old portrait of Ernest Hemingway with a paper texture overlay and handwritten signature.

Atmospheric Split-View Gallery

This Atmospheric Split-View Gallery creates an immersive, story-driven experience reminiscent of a digital scrapbook. It combines a full-screen horizontal slider with a “flip-card” mechanic to reveal hidden content. The visual style defines the component, utilizing CSS mix-blend-mode to fuse historical black-and-white photography with a grunge paper texture, creating a cohesive, vintage aesthetic. (Requires: swiped-events.js)

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 41+ Edge Edge 79+ Firefox Firefox 32+ Safari Safari 8+
Features:
Texture Blending Card Flip Keyboard Navigation Class-based State
License: MIT

See the Pen Atmospheric Split-View Gallery.

A digital photo of a serene landscape being physically torn in half from top to bottom, revealing another photo underneath, rendered in 3D.

Tearing Paper Photo Gallery

This Tearing Paper Photo Gallery is a technical marvel that simulates the physical act of ripping a photograph in half. Unlike simple 2D masking effects, this component uses WebGL (Three.js) to deform the geometry in 3D space. As the user drags downward, the “paper” mesh splits, rotates, and tears along a procedural edge, complete with lighting and shadow effects generated by custom shaders. (Requires: Three.js, GSAP)

Technologies:
HTML SCSS Babel
Difficulty: Advanced
Browser Support (as of Jan 2026):
Chrome Chrome 90+ Edge Edge 90+ Safari Safari 15+ Firefox Firefox 90+
Features:
Physics-based Tearing Custom Shaders Interactive Geometry Procedural Texture Generation
Code by: Steve Gardner Steve Gardner
License: MIT

See the Pen Tearing Paper Photo Gallery.

A 3D cube displaying photographs on its faces, with the side faces appearing darker due to a simulated lighting effect.

Draggable 3D Cube with Dynamic Lighting

This Draggable 3D Cube goes beyond standard CSS 3D transforms by implementing a custom “lighting engine” using JavaScript. As the user drags to rotate the carousel, the opacity of each face is dynamically calculated based on its angle relative to the viewport. This creates a realistic shading effect - faces facing the viewer are bright and fully opaque, while those turning away fade into the background, enhancing the perception of depth without using WebGL. (Requires: GSAP, GSAP Draggable)

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome Chrome 90+ Edge Edge 90+ Safari Safari 14+ Firefox Firefox 88+
Features:
Simulated Lighting 3D Transforms Inertia Dragging Procedural Geometry
Code by: Tom Miller Tom Miller
License: MIT
A 3D cube floating in a dark space, with different scenic photographs mapped to each of its six faces, rotated slightly to show depth.

Interactive 3D Photo Cube

This Interactive 3D Photo Cube creates a spatial navigation experience where a user explores six images mapped onto a cube by moving their cursor. Unlike standard sliders, it utilizes CSS 3D transforms orchestrated by GSAP to create a seamless, physics-like rotation. The snippet also features a “window-pane” parallax effect where the background images shift slightly inside their frames, adding an extra layer of depth. (Requires: GSAP)

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome Chrome 90+ Edge Edge 90+ Safari Safari 14+ Firefox Firefox 88+
Features:
Mouse Tracking 3D Transforms Parallax Effect Procedural Generation
Code by: Tom Miller Tom Miller
License: MIT

See the Pen Interactive 3D Photo Cube.

An infinite 3D carousel of cards that scrolls horizontally in a continuous loop.

Let's Move! GSAP Infinite Horizontal Scroll

An infinite 3D card carousel powered by GSAP ScrollTrigger.

Image gallery where clicking a thumbnail smoothly animates it to a full-screen detailed view.

Grid Items View with Flip Plugin

An image gallery featuring seamless “hero” transitions powered by GSAP Flip. Clicking an item expands it into a detailed view overlaid on the dimmed grid, smoothly animating position and scale.

Horizontal image gallery where the background color changes to match the currently viewed image.

Intersection Observer Example

A horizontal scrolling gallery where the background color smoothly transitions to match the current image, triggered by the Intersection Observer API.

See the Pen Intersection Observer Example.

Invisible Gallery

Invisible Gallery

An emotionally charged and technically complex component that uses kinetic animations simulating digital glitches or geometric transformations to dramatically reveal hidden content.

See the Pen Invisible Gallery.

Image Carousel

Image Carousel

A self-playing image carousel that synchronizes the page’s background with the active slide.

See the Pen Image Carousel.