# Shader Warp Slider

**Group:** Sliders and carousels  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/shader-warp-slider.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/shader-warp-slider.mp4)  
**Source:** [https://ui.aryank.space/components/shader-warp-slider](https://ui.aryank.space/components/shader-warp-slider)  
**Human:** https://blankinterfaces.com/lab/shader-warp-slider

---

## What it is

A wheel-driven slider where the transition happens in the fragment shader rather than in transforms. Both the outgoing and incoming textures are sampled on the same plane, split at the scroll position, so one image slides out as the next arrives with no second mesh. The vertex shader bows the plane by scroll velocity, bending the sides more than the top and bottom, so the frame flexes like film during a fast flick.

## Behaviour

### One plane, two textures

The fragment shader picks between the current and next texture based on the UV's Y against scroll position, so the transition needs a single mesh and there is no second object to keep in sync.

### Warp is velocity, not position

The vertex shader displaces Z by scroll intensity, which decays independently of scroll position, so the plane bows during a fast flick and flattens as it coasts to a stop.

### Stability is a separate state

Once motion falls below threshold the component snaps to a whole slide and pins the shader's position uniform to zero, so tiny residual drift cannot leave a hairline of the next image showing.

---

[View all content](https://blankinterfaces.com/sitemap.md)
