Skip to content
ReactHive

Colour Wash Slider

A full-screen slider where three things change together: the background colour washes across from the side you're heading, the giant word behind the photo rolls out through a mask as the next one rolls in, and the photo swings out one side as the next swings in from the other. The photo leans toward the pointer.

SlidersReactHive OriginalNo packages, just React and Tailwind CSS
Colour Wash SliderSliders

How It Works

The old colour stays as the background while a layer in the new colour grows over it, clipped to an ellipse that starts as a sliver at the edge you're heading toward and sweeps across. The word's letters share one grid cell with the outgoing ones, clipped top and bottom only: the old letters slide up and out, the new ones follow up from below, one after another. The photos swap the same way, the old one swinging off to one side with a turn as the new one swings in from the other. The pointer's position is followed softly and turned into a small 3D tilt on the photo.

Use It

Install it with shadcn, or copy the file into your components folder, then use it like this. Change a setting in the demo and the example picks it up. Works with Next.js (App Router) and any React 19 project on Tailwind CSS v4.

npx shadcn@latest add @reacthive/colour-wash
Example
<ColourWash slides={[{ src, alt, word: "Zest", title, caption, colour: "#f2933a", ink: "#5b2a0c" }]} />
  • slides is a list of { src, alt, word, title, caption?, colour, ink? }. word is set huge behind the photo, colour fills the screen, and ink colours the word, the text and the controls, so pick one that reads on the colour. Portrait photos fit the frame best.
  • interval is how long each slide stays, in seconds, drawn as the line filling (0 turns autoplay off); duration is how long the change takes. The clock pauses while the slider is off screen.
  • Arrows, a sideways swipe and the arrow keys move it. The slide number and title are announced to screen readers. With reduced motion slides change in place, without the wash or the swing, and nothing plays on its own.
  • No packages: CSS animations for the wash, the letters and the photo, and one small requestAnimationFrame loop for the lean, which pauses off screen.

Colour Wash Slider, Answered.

Free to use, what it needs and where it came from.

Your Next Site Starts with a Live Demo.

Click around first. What you see is exactly what you download.

Start a Project

Tell us what you're making. A few lines is plenty; we'll ask the rest on a call.

What do you need?
Rough budget (optional)

Or email projects@reacthive.dev