50+ JavaScript Parallax
Enhance your site’s visual appeal with JavaScript parallax effects that create a sense of depth and motion. This collection features examples of scroll-based animations, layered backgrounds, and interactive mouse-driven scenes - ideal for landing pages, portfolios, and modern web designs.
Examples

3D Parallax Glassmorphic Carousel Slider
An advanced 3D carousel slider engineered with glassmorphic cards, multi-depth parallax shifts, and tilt physics. Using native Pointer Events and inertia-drag calculations, the carousel projects slides along a 3D hemisphere with variable depth sorting and optional keyboard navigation. Features an automated progress timer with accessible, tab-compliant pagination.
See the Pen 3D Parallax Glassmorphic Carousel Slider.

Smooth Accordion with Parallax Images
An advanced semantic accordion using native <details> elements synchronized with a parallax image gallery. Height transitions are made fluid through modern interpolate-size: allow-keywords and complex linear() bounce easings. JavaScript connects active toggles to external navigation buttons, aligning the active image block to match disclosure states. (Requires: gsap.js, tweakpane.js)
See the Pen Smooth Accordion with Parallax Images.

3D Depth Parallax Pop-Out Cards
3D Depth Parallax Pop-Out Cards uses a mathematical approach combining value remapping and linear interpolation (lerp) to calculate fluid, lagged cursor coordinates inside a 60 FPS animation loop. This script alters custom CSS properties --rotateX and --rotateY, projecting individual layer transforms across multiple translated depths—namely a blurred .shadow, background scene, golden borders, and a foreground .cutout. While visually convincing, utilizing setInterval at a hardcoded 1000/60 rate can cause micro-stuttering on high-refresh-rate displays, making requestAnimationFrame a far more performant choice.
See the Pen 3D Depth Parallax Pop-Out Cards.
Parallax Pixel Sprite Carousel Slider
Parallax Pixel Sprite Carousel Slider connects Flickity carousel’s scroll progress event directly to the left style offsets of absolute background and foreground sprite sheets. By assigning unique speed multipliers to each layer (0.75 for background, 2 for foreground), it establishes a pseudo-3D pixel art parallax depth without heavy WebGL overhead. However, changing the layout property left on every scroll tick forces constant layout recalculations and paint cycles, which can be optimized by transitioning to CSS transform translate3d instead. (Requires: flickity.js)
See the Pen Parallax Pixel Sprite Carousel Slider.

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)
See the Pen Halloween 2.5D Parallax Shader.

Smooth Parallax Image Scroll Gallery
This is a Smooth Parallax Image Scroll Gallery. It translates vertical scroll progression into independent Y-axis movement for masked images. Its function is to create a sense of depth and momentum, elevating standard vertical feeds into immersive visual narratives. (Requires: gsap-js, scroll-trigger-js, lenis-js)
See the Pen Smooth Parallax Image Scroll Gallery.

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.
See the Pen Draggable Image Track Parallax.

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.
See the Pen Interactive Vertical Parallax Cursor Navigation.

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.
See the Pen Mouse-Reactive Floating Image Gallery.

Cinematic Parallax Reactive Navigation Menu
This is a Cinematic Parallax Reactive Navigation Menu. It synchronizes large-scale typographical navigation with multi-layered background shifts. Its function is to transform a standard menu into a high-end atmospheric gateway for editorial or premium portfolio websites, using user interaction to drive the visual narrative.
See the Pen Cinematic Parallax Reactive Navigation Menu.

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)
See the Pen Shattering Image Gallery Transition.

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)
See the Pen Smooth 3D Scroll-Driven Reveal.

Pinned Split-Screen Mask Reveal
Pinned Split-Screen Mask Reveal is a high-performance scroll-driven layout. It synchronizes fixed image stacks with flowing text content. This element creates a cinematic transition where images are “unmasked” as the user progresses through sections. It is designed to bridge the gap between static information and immersive visual storytelling. (Requires: gsap-js, scroll-trigger-js, lenis-js)
See the Pen Pinned Split-Screen Mask Reveal.

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)
See the Pen Canvas Card Slicer Game.

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)
See the Pen 3D Parallax Card Slider.

Parallax Jungle Leaves Reveal
This Parallax Jungle Leaves Reveal creates a cinematic opening for a landing page. As the user scrolls, dense layers of tropical SVG leaves part ways - some moving left, some right - while smaller leaves float randomly in the background. The effect culminates in the reveal of a typography-based logo, creating a sense of depth and discovery perfect for storytelling or adventure-themed websites. (Requires: GSAP, ScrollTrigger (GSAP))
See the Pen Parallax Jungle Leaves Reveal.

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)
See the Pen Scroll-Driven Image Swapper.

Draggable 3D Parallax Image Ring
This Draggable 3D Parallax Image Ring creates a high-end, immersive gallery experience often associated with WebGL, but built entirely with DOM elements and GSAP. It arranges images in a 3D circle that users can spin with a swipe or mouse drag. The standout feature is the calculated parallax effect: as the ring rotates, the background position of each image shifts in the opposite direction, creating a convincing illusion of depth and window-like transparency. (Requires: GSAP, GSAP Draggable)
See the Pen Draggable 3D Parallax Image Ring.

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)
See the Pen Interactive 3D Photo Cube.

ScrollMagic Pizza Assembly Animation
This ScrollMagic Pizza Assembly Animation transforms a standard product landing page into an interactive storytelling experience. As the user scrolls down, individual pizza ingredients - peppers, mushrooms, olives - fly in from different directions to assemble a complete pizza. The sequence is tightly choreographed using GSAP timelines pinned to the scroll position, giving the user direct control over the “cooking” process. (Requires: ScrollMagic, GSAP)
See the Pen ScrollMagic Pizza Assembly Animation.

Smooth Parallax Scroll Layout
This GSAP ScrollSmoother Parallax Gallery represents a high-end implementation of scroll-based storytelling suitable for portfolios or luxury brand landing pages. It leverages the full power of the GreenSock ecosystem - specifically the premium ScrollSmoother and SplitText plugins - to create a “buttery” smooth scroll experience where content reveals itself with elegant, staggered animations and depth-inducing parallax. (Requires: GSAP, ScrollTrigger, ScrollToPlugin, SplitText, ScrollSmoother)
See the Pen Smooth Parallax Scroll Layout.

Perspective Zoom Effect on Scroll
An immersive scrolling experience where the user flies through a cloud of photos that smoothly approach and fade away, revealing an elegantly emerging text.
See the Pen Perspective Zoom Effect on Scroll.

GSAP ScrollSmoother and Three.js
An immersive scrolling experience blending smooth typography with a floating 3D particle field powered by Three.js. GSAP orchestrates the camera movement and dynamic text highlighting, creating a synchronized parallax journey.
See the Pen GSAP ScrollSmoother and Three.js.

Scroll UI Animation
As you scroll down, a large image of a field shrinks and gets cropped by white blocks to focus attention, while a heading on the left counts up the percentage of water saved, changing color for emphasis. This creates the feel of a dynamic infographic.
See the Pen Scroll UI Animation.

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.

Holographic Name Card with Hover Effects
An interactive 3D holographic card where JavaScript maps pointer coordinates to scoped CSS Custom Properties like --pointer-x. The physical lighting simulation relies on complex gradient layering, mask-image, and mix-blend-mode, all dynamically driven by these calculated values to create realistic depth and glare.
See the Pen Holographic Name Card with Hover Effects.

Amateur Radio Badge 3D
A highly sophisticated holographic badge simulation utilizing CSS 3D transforms and layered mix-blend-mode effects. JavaScript tracks mouse movement to dynamically update CSS variables, driving complex parallax shifts, lighting gradients, and SVG-masked glares for a realistic, tactile depth experience.
See the Pen Amateur Radio Badge 3D.

Air Balloon Cruise
A soothing dreamscape scene with smooth, infinite animation resembling a live postcard or a splash screen for a meditation app.
See the Pen Air Balloon Cruise.

3D Patronus Magic Card
An enchanting 3D parallax card featuring a multi-layered depth effect driven by mouse interaction.
See the Pen 3D Patronus Magic Card.

Parallax Carousel with GSAP Observer
Images drift horizontally at varying speeds and sizes, establishing a tangible sense of depth. Upon user interaction, the scroll accelerates or reverses direction with a satisfyingly elastic, spring-like response.
See the Pen Parallax Carousel with GSAP Observer.