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/WebGL Slider

WebGL Slider

Scroll image cards along a curved arc while a WebGL shader folds each card as it enters and leaves, so campaign visuals, product shots, and portfolio frames feel authored rather than swapped.

Three.jsGSAPLenis
DemoDemoDemo

Tune the Real Props

Overview

WebGL Slider gives a carousel a real visual engine. Page scroll moves a column of image cards along a curved arc; as each card nears the top or bottom of the screen a vertex shader curls it like a folding page, the cursor pushes a soft bend into the surface, and when scrolling stops the page snaps so the nearest card settles in the centre. Scroll runs through the set once; at the end the view wraps back to the first card, but the page itself stops scrolling.

Use WebGL Slider when a visual sequence needs more atmosphere than a standard carousel can provide. It fits portfolios, launch campaigns, fashion visuals, product storytelling, and experimental editorial pages where the transition itself is part of the art direction. The page job is presentation: each slide should feel authored. There are no buttons; the slider is driven entirely by page scroll.

The production risk is hiding content behind a canvas. A WebGL slider can look expensive while failing as a carousel if slide text, controls, links, and fallback states are weak. Here the images exist only as WebGL textures; the slide labels (PR.00 /10 and so on) are HTML text positioned beside each card, and a visually hidden live region announces the current slide. The meaning still needs usable HTML.


Usage Code

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

Example Production Use Case

A campaign page can use WebGL Slider to move between eleven visual frames as the visitor scrolls, each folding in and out of view. The outcome is presentation: the images feel like a designed sequence rather than a stack of assets in a carousel shell.


Best Used For

  • Portfolio and campaign visuals where transition quality is part of the brand.
  • Image-led case studies that need a richer slide change than a translateX animation.
  • Launch pages where the slider is a feature visual, not a hidden content drawer.

Not For

Not for pricing, testimonials, critical proof, legal content, or anything users must compare side by side.

Not for pages where a static grid would help users decide faster.


Performance Budget

The component caps DPR at 2 and disposes textures, materials and the renderer on unmount. It loads every texture up front, renders every frame while mounted on a fixed full-screen canvas, and sets the page body height to (slides + 1) x 100vh to create scroll room, so give it its own page or route and compress the images.


Accessibility and Mobile

There are no visible controls, key handlers or touch handlers: the slider moves with page scroll (wheel, trackpad, scrollbar or keyboard scrolling such as arrow keys and Page Down) and snaps to the nearest slide. A visually hidden aria-live="polite" region announces each slide's label and position. Below 768px it does not render the slider and shows an "Open on desktop" message instead, and between 768px and 1024px the fold is turned off. With reduced motion enabled, the fold and hover bend are switched off, scroll is followed directly instead of smoothed, the snap takes 0.15s, and the cards sit further apart.


Common Mistakes

  • Putting slide labels and links only inside WebGL.
  • Dropping it into a long page: it sets the body height and snaps the whole page scroll, so it does not sit well between other sections.
  • Making the shader transition more important than the slide content.

Changelog

Added reduced motion support.
Initial release

API Reference

PropTypeDefaultDescription
distortionStrengthnumber1Strength of the shader fold distortion as slides scroll past.
transitionDurationnumber0.6Duration of the scroll-snap settle animation.
enableHoverEffectbooleantrueEnables the pointer-driven hover bend on each slide.
imageWidthnumber3.2WebGL slide plane width.
imageHeightnumber3WebGL slide plane height.

Questions, Answered.

When should I use WebGL Slider?

Use it when a visual carousel needs shader-led transitions and a premium image sequence, not when users need fast comparison.

Does WebGL Slider need normal controls?

It does not ship with any. Navigation is page scroll with snap, so keyboard users can move through slides with normal page-scrolling keys, but there are no next or previous buttons and no swipe gesture. Add visible buttons that scroll to the next or previous slide if your audience needs them.

What should happen if WebGL fails?

The component has no non-WebGL fallback: the images exist only as textures, and the HTML labels only appear once the WebGL renderer starts, so if WebGL is unavailable only the screen-reader live region remains. If that matters, detect WebGL support and render the same images as a normal gallery instead.

Should WebGL Slider autoplay?

It does not autoplay; slides only move when the visitor scrolls. If you add autoplay, give it a clear pause control and turn it off for reduced motion.

What should reduced motion do?

With prefers-reduced-motion set, the shader fold and hover bend are off, scroll is followed directly instead of smoothed, and the snap is a quick 0.15s ease. The cards still travel along the arc as you scroll.

Can Hyperiux adapt WebGL Slider for a real brand system?

Yes. A custom version should define shader style, slide data, controls, fallback behavior, performance budget, source handoff, and implementation notes.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Ring Carousel
Pro
GSAPLucide-react

Ring Carousel

Carousels

Helix Slider
Pro
Three.js@react-three/fiber

Helix Slider

Scroll

Zoom Slider
GSAP

Zoom Slider

Carousels