Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Parallax Gallery

Parallax Gallery

A scroll-driven gallery where images slide through a centred frame, tilting and scaling as they pass, to create depth for editorial, fashion, photography, and visual campaign pages.

GSAPLenis
DemoDemoDemo

Tune the Real Props

Bg Color

Background color of the gallery section.

Border Color

Color of the dashed border around the center frame.

Overview

Depth before explanation: Parallax Gallery is how atmosphere starts before a word is read.

Use Parallax Gallery when visual atmosphere matters more than step-by-step explanation. Editorial teams, fashion brands, photography studios, and image-led campaigns benefit most because the effect makes a collection feel curated rather than arranged. The page job is atmosphere: visitors should sense depth and pace before they begin comparing images.

In production, the risk is scroll length and loading. The section is 100vh of scroll per image with a sticky full-screen stage that snaps to each slide, and the six images are hard-coded in the source and loaded eagerly, each one twice (main slide and thumbnail).


Usage Code

page
1import ParallaxGallery from '@/components/effects/parallax-gallery'2 3const page = () => {4  return (5    <>6    <ParallaxGallery />7    </>8  )9}10 11export default page

Example Production Use Case

A photography studio relaunching its portfolio page: Parallax Gallery pins a dashed centre frame on screen and moves images one by one through it as the visitor scrolls, each tilting and scaling as it passes, while thumbnail rails on either side show the previous and upcoming shots and a counter tracks progress. The outcome is atmosphere: visitors browse longer before deciding whether to make contact.


Best Used For

  • Editorial or lifestyle galleries where atmosphere should arrive before detailed product comparison.
  • Editorial, fashion, and lifestyle pages that want atmosphere before the spec sheet.
  • Extends editorial or fashion pages without requiring more copy - the depth is the argument.

Not For

Not for ecommerce catalogues, image-heavy archives, or pages where speed-to-grid matters more than atmosphere.

Not for pages where image loading speed is the primary conversion variable - every image loads eagerly, once in the frame and again in the thumbnail rails.


Performance Budget

Scroll progress drives transforms only (translate on the slide strip and thumbnail rails, rotate and scale on each slide), and the ScrollTrigger is killed on unmount. Images use next/image with fill and sizes="100vw" but load eagerly, so compress them; if the page uses Lenis smooth scroll, the component pauses it while a snap runs.


Accessibility and Mobile

Slides sit in DOM order and the counter shows the current position, but each image's alt text is a generic id ("slide-0"), so replace it with real descriptions in the source. Below 640px the same pinned slider runs with a smaller 280 by 340px frame and smaller thumbnails; there is no stacked fallback.


Common Mistakes

  • Setting rotationDeg or offscreenScale so high that the slides entering the frame look distorted rather than tilted.
  • Shipping the default alt text ("slide-0", "slide-1") instead of real image descriptions.
  • Loading unoptimised images - every image loads eagerly in both the frame and the thumbnail rails, so large files multiply the cost.

Changelog

Added reduced motion support.
Initial release

API Reference

PropTypeDefaultDescription
bgColorcolor#111111Background color of the gallery section.
borderColorcolorrgba(255, 255, 255, 0.5)Color of the dashed border around the center frame.
rotationDegnumber6Max rotation (degrees) applied to off-center slides as they scroll past.
offscreenScalenumber1.2Scale applied to off-center slides relative to the centered one.
frameScalenumber1Multiplier on the center frame's width/height.

Questions, Answered.

How much tilt and scale is too much on small viewports?

The defaults (6 degrees of rotation and a 1.2 scale on off-centre slides) read well on phones, where the frame shrinks to 280 by 340px. Pushing rotationDeg or offscreenScale much higher makes slides look distorted inside the small frame, so test any changes at narrow widths.

Does Parallax Gallery create layout shift on initial render?

No. The frame, slides and thumbnails have fixed pixel sizes and the images fill them with object-cover, so nothing moves as media arrives. The stage fades in once the viewport has been measured, to avoid flashing desktop sizing on mobile.

What image loading strategy protects Core Web Vitals?

The component loads every image eagerly through next/image with sizes="100vw", in both the frame and the thumbnail rails, so the main lever is the files themselves: keep the set small and serve compressed assets from a host configured for next/image. If you need lazy loading, change the loading attribute in the source.

How does Parallax Gallery behave on mobile?

Below 640px it keeps the same pinned, snapping slider with a smaller frame (280 by 340px), smaller thumbnails and a smaller counter. With reduced motion the gallery still slides with scroll; only the tilt and scale drop to 25% of their normal strength.

Is Parallax Gallery suitable for product photography pages?

Yes, when atmosphere should precede the spec sheet: editorial, fashion and lifestyle product pages benefit from moving one shot at a time through the frame. It is a poor fit where shoppers need to compare items, since only one image is large at a time. Use it for the hero or story section, then hand off to a static grid for the catalogue.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Scroll Stack
Pro
GSAP

Scroll Stack

Scroll

3D Portfolio Slider
Pro
Three.jsGSAPLenis

3D Portfolio Slider

WebGL

Horizontal Feature Reveal
GSAP

Horizontal Feature Reveal

Scroll

Infinite Perspective Slider
GSAP

Infinite Perspective Slider

Scroll