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

demo & code

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.

Level: Advanced
Browser Support [As of Feb 2026]: Chrome 60+, Edge 79+, Firefox 55+, Safari 11.1+
A realistic 3D time picker interface with scrolling wheels for hours, minutes, and AM/PM, styled in dark mode with a 3D perspective skew.

3D Rotating iOS Time Picker

demo & code

This 3D Rotating iOS Time Picker recreates the tactile feel of native mobile controls on the web. It features three independently rotating wheels (Hours, Minutes, Meridiem) that snap into place with satisfying physics. The component leverages the cutting-edge Scroll-driven Animations API for buttery-smooth performance on supported browsers, while seamlessly falling back to GSAP for others. The 3D perspective creates a “drum” effect where numbers fade and rotate away as they leave the center view.

Level: Advanced
Browser Support [As of Feb 2026]: Chrome 115+, Edge 115+, Safari 26+, Firefox (support via GSAP Fallback)
Minimalist dark blue sticky header that shrinks and hides the center title text when scrolling down, powered by the Intersection Observer API.

Sticky Observer Navigation

demo & code

The Sticky Observer Navigation is a performance-first header component designed for modern landing pages. It uses an elegant dark-blue color palette with “Abril Fatface” typography to create a high-contrast, premium look. The navigation intelligently shrinks and hides the central title as the user scrolls, providing more screen real estate for content while maintaining essential link icons within a fixed bar.

Level: Intermediate
Browser Support [As of Feb 2026]: Chrome 51+, Edge 15+, Firefox 55+, Safari 12.1+
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.

Infinite Mondrian Image Gallery

Infinite Mondrian Image Gallery

A visually unique web application that continuously expands its content upon scrolling, demonstrating the synergy between a reactive framework and modern browser APIs for procedural design.

See the Pen Infinite Mondrian Image Gallery.

React Infinite Scrolling with IntersectionObserver

React Infinite Scrolling with IntersectionObserver

An infinite scroll gallery built with React, fetching images from the Unsplash API. It leverages the native Intersection Observer API via a useCallback ref to detect when the user reaches the bottom of the grid, automatically triggering the next page fetch and state update for a seamless browsing experience.

Dynamic Active Table of Contents

Dynamic Active Table of Contents

A convenient navigation for long-reads or documentation that automatically structures content and visually indicates the user’s current section.

See the Pen Dynamic Active Table of Contents.

LapisCordis: A Greco-Roman Mythological Card Game

LapisCordis: A Greco-Roman Mythological Card Game

A high-quality, atmospheric Trading Card Game (TCG) interface featuring smooth animations, a tangible sense of depth, and “magical” visual effects upon interaction.

Open Props Bento Grid

Open Props Bento Grid

A modern, visually appealing content grid that smoothly assembles on scroll, adapting seamlessly to any screen size.

See the Pen Open Props Bento Grid.

JavaScript Lazy Loading with IntersectionObserver

JavaScript Lazy Loading with IntersectionObserver

A performant lazy loading solution utilizing the IntersectionObserver API to defer off-screen image loading. The script monitors elements with a lazy-load class, swapping the data-src attribute into src upon viewport entry - buffered by a 200px rootMargin - to optimize bandwidth and initial page load speed while preventing layout shifts via CSS placeholders.

Sticky Header Calendar

Sticky Header Calendar

A user-friendly calendar interface that functions seamlessly on both desktop and mobile devices, keeping context (time and day) constantly visible to the user, featuring both horizontal and vertical scrolling.

See the Pen Sticky Header Calendar.

Infinite Scrolling with Image Cards

Infinite Scrolling with Image Cards

This infinitely scrolling image grid employs an IntersectionObserver with baton-passing observation to dynamically load content from the Pixabay API, creating cards through DOM manipulation as the user scrolls. JavaScript manages the paginated requests while CSS Grid provides responsive layout adaptation, with custom properties enabling seamless dark/light theme switching and clip-path animations.

Page Indicator Animation

Page Indicator Animation

A full vertical slider with scroll-snap points. The navigation indicator is dynamically animated using the Intersection Observer API, which tracks when a slide enters the viewport.

See the Pen Page Indicator Animation.

Scroll-Snap Grid Navigation with Intersection Observer

Scroll-Snap Grid Navigation with Intersection Observer

See how the Intersection Observer powers the 2D grid navigation: the Scroll Snap logic handles mandatory cell binding, while a JS utility adds support for keyboard arrow navigation and responsive typography using cqi/dvh units.

Text Reveal (on Scroll) Effect

Text Reveal (on Scroll) Effect

An elegant text reveal effect that uses the Intersection Observer API for lazy-loading animation upon entering the viewport and relies on GSAP to perform a smooth “wipe” using a scale transformation.

See the Pen Text Reveal (on Scroll) Effect.

Dinosaur Park Scroll Snap Reveal Demo

Dinosaur Park Scroll Snap Reveal Demo

Impressive scroll-triggered element reveal implemented using the native Intersection Observer API and styling based on CSS Custom Properties for cascading animations.

Efficient Image Scroll Zoom Effect

Efficient Image Scroll Zoom Effect

A demo of the scroll zoom effect via dynamic element visibility calculation and utilizing the Intersection Observer API for performance enhancement.