70+ JavaScript Scroll Effects (Page 2)
Examples

Smooth Scrolling with GSAP ScrollSmoother
A premium smooth-scrolling interface orchestrated by GSAP’s ScrollSmoother plugin. The layout leverages CSS Grid for overlapping compositions, while declarative data-speed attributes drive distinct parallax velocities for text and imagery, creating a layered, depth-rich browsing experience.
See the Pen Smooth Scrolling with GSAP ScrollSmoother.

Physics Milestones Timeline
An animated vertical timeline where historical event cards slide in from alternating sides as they enter the viewport upon scrolling.
See the Pen Physics Milestones Timeline.

CSS Scroll-Driven Content Wave
A fluid, tactile selection interface where elements “live” and react to scroll, creating a “fisheye” or lens effect.
See the Pen CSS Scroll-Driven Content Wave.

Scroll-Driven Content Wave #2
A horizontal scroll interface featuring a “lens” effect powered by CSS Scroll-Driven Animations (animation-timeline: view(inline)).
See the Pen Scroll-Driven Content Wave #2.

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.

Inertial Scroll Gallery with 3D Transforms
A sophisticated scroll-hijacking gallery that emulates inertia using a virtual scroll container and requestAnimationFrame. JavaScript orchestrates complex 3D transforms - calculating rotation and translation based on intersection ratios - while the layout relies on a fixed CSS grid.
See the Pen Inertial Scroll Gallery with 3D Transforms.

GSAP ScrollTrigger Parallax Effect
This demo is a masterclass in scroll-driven animation, where GSAP’s ScrollTrigger plugin choreographs multiple, layered effects. A fluid parallax effect is created by using scrub: 1 to tie the yPercent and rotation of decorative elements directly to the scrollbar. This is complemented by a sophisticated text reveal, where GSAP’s SplitText plugin animates characters into view with a staggered opacity and y tween, demonstrating a powerful and modular approach to building complex, interactive scrolling experiences.
See the Pen GSAP ScrollTrigger Parallax Effect.

Horizontal Scroll Section with GSAP and Locomotive Scroll
Experience a classic “pinned” horizontal scroll effect, where a vertical scroll action is converted into horizontal movement. GSAP’s pin: true property freezes the section in place, while a tween animates the x property of the inner container, creating a cinematic, side-scrolling gallery.

Sliding List with Scroll-Driven Animations
This demo uses a single scroll event listener to calculate the individual progress of each list item as it enters the viewport. The progress value is then passed to a CSS Custom Property, which drives a staggered transform: scale() and opacity animation for a fluid, app-like reveal effect.
See the Pen Sliding List with Scroll-Driven Animations.

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.
See the Pen Infinite Scrolling with Image Cards.

Scroll-Driven Web Gears Animation
A complex technical example demonstrating how to ensure animation functionality even without CSS animation-timeline: scroll() support. The code first checks for support and, if absent, uses GSAP ScrollTrigger as a polyfill for scroll-driven animation.
See the Pen Scroll-Driven Web Gears Animation.

Infinite Scrollable and Draggable WebGL Grid
This demo showcases advanced THREE.js implementation using coordinate wrapping and custom shaders to create a highly performant, infinitely scrollable and draggable WebGL grid with motion-based visual feedback.
See the Pen Infinite Scrollable and Draggable WebGL Grid.

Vanilla JS Skew Images on Scroll
A dynamic image skew effect in pure Vanilla JS, where the transformation angle directly depends on the page’s scroll velocity, providing unique and responsive visual feedback.
See the Pen Vanilla JS Skew Images on Scroll.

Animated Scroll-Triggered Timeline
A smooth vertical timeline featuring scroll-triggered element animation, implemented using efficient pure JavaScript DOM visibility tracking to enhance performance and content engagement.
See the Pen Animated Scroll-Triggered Timeline.

CSS Glitchy Text Reveal with Splitting.js
A demonstration of per-character text manipulation using Splitting.js to create a striking CSS glitch animation, where each character receives a unique set of random custom properties for varied and dynamic text reveal effects.
See the Pen CSS Glitchy Text Reveal with Splitting.js.

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
Impressive scroll-triggered element reveal implemented using the native Intersection Observer API and styling based on CSS Custom Properties for cascading animations.
See the Pen Dinosaur Park Scroll Snap Reveal Demo.

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.
See the Pen Efficient Image Scroll Zoom Effect.
Pixelated Lazy Load for Images
Pure JavaScript and CSS demonstrate how to replace a heavily pixelated placeholder with a full-size image using the data-src attribute and switching the image-rendering styles.
See the Pen Pixelated Lazy Load for Images.

Layout Explorations with GSAP, Flip, Lenis and ScrollTrigger N°2
An advanced gallery UX pattern where view switching (List/Grid) uses GSAP Flip for calculating and executing complex transitions, and the hover preview effect is controlled by precise mouse events with debounce logic.

Cinematic Glitch Slideshow
An interactive demo showcasing slide transitions via destructive digital effects. It uses WebGL shaders to create realistic VHS distortion, static, and pixelation.
See the Pen Cinematic Glitch Slideshow.

Codepen Challenge: Article Details
This demo uses the JavaScript IntersectionObserver API to create a smart-scrolling navigation that appears on scroll and highlights the active section, all without performance-heavy event listeners.
See the Pen Codepen Challenge: Article Details.

Animated Continuous Sections with GSAP
A practical example of a full-page scroller built with GSAP, featuring an infinite loop via gsap.utils.wrap. The core animation uses nested containers for a split-reveal effect, while text comes alive with a staggered animation on individual characters thanks to SplitText.
See the Pen Animated Continuous Sections with GSAP.

Scroll-Based Reveal Animations with ScrollTrigger
Technically, this is an example of using GSAP for “in” and “out” element animations based on scroll position. The code effectively uses callback functions like onEnter, onEnterBack, and onLeave to manage element states, making them visible only when needed.
See the Pen Scroll-Based Reveal Animations with ScrollTrigger.

Wave and RGB Image Distortion with Shaders
See how vertex and fragment shaders in Three.js are used to create a “living image” effect that reacts to scrolling. The technical focus is on the deformation (uOffset) and RGB shift (uRGBShift) controlled via GSAP.
See the Pen Wave and RGB Image Distortion with Shaders.
Infinite Horizontal Scroll with Progress Tracking
A fullscreen horizontal scroll with unique infinite loop logic based on dynamic content cloning, complemented by a progress indicator.
See the Pen Infinite Horizontal Scroll with Progress Tracking.

Three.js 3D Model Animation with GSAP ScrollTrigger
An immersive scroll animation built on GSAP (ScrollTrigger) and Three.js. Features include 3D model loading, volumetric lighting, and dynamic animation parameters that can be easily adjusted via a control panel.
See the Pen Three.js 3D Model Animation with GSAP ScrollTrigger.

GSAP ScrollTrigger Disintegration Effect
This isn’t just a simple scroll effect—it’s an artistic display of a custom-built disintegration animation. It leverages GSAP’s ScrollTrigger to control the precise, chaotic fade-out of an image rendered from the DOM.
See the Pen GSAP ScrollTrigger Disintegration Effect.