Several at a time
Drag it, swipe it, or turn the wheel. The faster it goes, the more the pictures give way, and their colours come apart; under the pointer they smear like wet paint. A click lets one grow to the screen.
What it does
Every one of these is a page of the docs.
Its own motion
A spring, solved exactly on every frame. Drag, swipe, the wheel, the keys. It snaps, loops, rests anywhere, goes sideways or downwards.
Options, API and eventsThe best there is
WebGPU where the browser has it, else WebGL 2: the same picture, and tests that hold them to it, to a hundredth of a pixel. When frames come late, it draws fewer pixels. Without either, the page moves the slides and a transition is a crossfade. Without a script, a row that scrolls and snaps.
The canvas25 effects, written once
Images that give way to the speed, colours that come apart, lenses and waves under the pointer, slides of jelly and of thick glass, a loupe that crosses the gaps between slides. Covers and fans may leave the slider onto a stage around it. An effect is a few lines of GLSL, and is translated for WebGPU when the shader is made.
Effects24 transitions
One slide turns into the next: liquid, burn, glitch, fold. They follow the pointer, so a slow drag stops half way. What is written for gl-transitions runs as it is.
TransitionsEverything is a plugin
Arrows, dots, keys, autoplay, a ticker, thumbnails, videos that play in view. What is not imported is not in the bundle, and a plugin of your own is a function.
PluginsA lightbox
A click lets the image grow out of its slide to the screen, and one canvas draws all of it: the one of the slider, with its effects, which fade on the way. Drag it there, or the arrows; Escape lets it go back into its slide.
LightboxReact
<Slider> and <Slide>, 602 bytes on the core. Options are props, React renders the slides, the library moves them, and slides that come and go are seen.
ReactNo script of your own
One file of 8.4 KB and attributes in the HTML. The canvas and the lightbox are loaded when a slider asks for them and the page has time.
Without a script
Effects
They go together: here a dome, parallax, and squares in the wake of the pointer that show their part closer, with colours that come apart. Every slide as wide as its picture, and a click lets one grow to the screen.
In numbers
Measured, not guessed: the sizes by the build, the times by the benchmark of the repo, the scores by Lighthouse, of this page as it is built.
- 4.8KBThe core, gzipped
- The core4.8 KB
- With all its options7.2 KB
- useSlider, for React0.1 KB
- canvas(), which chooses0.4 KB
- The layer of WebGPU9.5 KB
- The layer of WebGL 27.8 KB
- The lightbox2.2 KB
- auto.js, with no script8.4 KB
Gzipped, in the bundle of who imports it. A plugin is 0.3 to 1.0 KB, an effect 0.2 to 0.8. A visitor loads one of the two layers, and every part has a budget the build holds it to. More
- 0Dependencies
"dependencies": {}Nothing is installed with it. The layers, the plugins and the effects are files of the library, and a page loads those it names.
- 33msUntil a second slider is drawn by WebGPU. By WebGL: 50 ms
- First slider, WebGPU64 ms
- First slider, WebGL82 ms
- A second, WebGPU33 ms
- A second, WebGL50 ms
- Four more, WebGPU33 ms
- Four more, WebGL169 ms
In Chromium 153. WebGPU has one device for every slider of a page, and a shader is made once for all of them. More
- 20 of 20Sliders of one page on the canvas of WebGPU. WebGL: 12WebGPU20 of 20WebGL12 of 20
A browser gives a page a few WebGL contexts; past them the page draws the slides. WebGPU draws all of them with one device.
- 0Frames drawn while nothing moves
A frame is drawn while something moves, and none once it rests: the page is idle, and so is the GPU. While 6 sliders move, a frame takes 0.33 ms of script.
- 49Effects and transitions
- ascii
- bend
- cells
- coverflow
- dome
- edges
- fan
- glass
- jelly
- loupe
- magnify
- parallax
- pile
- pixels
- reveal
- shift
- slab
- smear
- split
- spotlight
- stretch
- tilt
- unweave
- wave
- waves
- blocks
- burn
- chroma
- datamosh
- displace
- distance
- fluted
- fold
- glitch
- glyphs
- kaleido
- lens
- lightning
- liquid
- mosaic
- pixelate
- push
- ripple
- signal
- swirl
- warp
- weave
- wind
- zoom
25 effects and 24 transitions, each a few lines of GLSL. Try them all. More
Lighthouse, on this page
- Performance: 97 of 100
- Accessibility: 97 of 100
- Best practices: 100 of 100
- SEO: 100 of 100
- Agentic browsing: 100 of 100
Asked on 2026-09-30, on a phone and on a desktop.
In a page
From the least to load to the least to write. Or run it in your browser first, nothing to install.
import { createSlider } from 'gpuslider';
import { controls, keyboard } from 'gpuslider/plugins';
import 'gpuslider/style.css';
createSlider( element, { loop: true, plugins: [ controls(), keyboard() ] } );Made of it
Pages that are made of the library, and of little else.

Panes
A gallery of four pictures that turn into the next four by any transition of the canvas, in three ways to switch between: place by place, from the left, from the middle or at random; all at once in one sweep, across the gaps; or at the edges of a row that moves, where its pictures come and go. Below it, three that burn into the next. Click one to open it.

Resolve
Rows of pictures that come out, part by part, as they come into view: in pixels, halftone dots, slices, shards, dither, scanlines, glyphs, threads or ink, as you choose. They break up again when the page is scrolled fast or a row is thrown. Click one to open it. After the scroll-revealed gallery of Chakib Mazouni.

Reveal
An index of work: each picture opens out of the pointer and turns into the next as you move down the names, in eleven ways: burnt, out of smoke, as a drop, shattered, in blocks, through blinds, struck by lightning, out of frost, in dots, through a heat camera or a whirl. Click one to open it. After the shader reveal of Colin Demouge.

Orbit
One row of pictures rolled up into a cylinder that the page turns as it is scrolled, and a drag throws round. Scrolled on, it tips, takes you inside, and unrolls into the slider it always was. Below it, a second slider is its reflection. After the On-Scroll 3D Carousel of Manoela Ilic.

Echo
A reel of photos that leave frames of themselves behind as they move, the farther apart the faster. Pick a photo below and it arrives as a stream of frames, all drawn by one pass of the canvas. After Animating in Frames by Manoela Ilic.

Fold
Walls of small pictures that fold into place one after another as the page is scrolled, each in its own order: column by column, along a diagonal, from the middle out, or like rain; flat in the middle of the screen. Every wall is one slider whose track is a grid, drawn by one canvas; drag it sideways, click a picture to open it. After the staggered 3D grid animations of Manoela Ilic.







