Skip to content
ReactHive

Iris Scroll

A line of big text on a plain ground with a small circle set into it like a word of its own, showing a photo. Scrolling opens the circle: it grows and drifts to the middle until the photo fills the screen, the words turning white where it passes over them and fading as they're covered.

ScrollReactHive OriginalNo packages, just React and Tailwind CSS
Iris ScrollScroll

How It Works

The section's inner frame is sticky. The circle is an empty space in the line of text; each frame it's measured, and the photo layer above is clipped to a circle starting there. As the page scrolls the circle's radius grows by the same share each step, from the size of the space to the screen's half diagonal, while its centre eases to the middle of the screen. A white copy of the line sits inside the photo layer, exactly over the dark one, so the words change colour wherever the circle covers them.

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/iris-scroll
Example
<IrisScroll text="Every big picture starts as one small point." at={6} image={{ src, alt }}>
  <h3>Your content over the photo</h3>
</IrisScroll>
  • text is the line; at is which word the circle sits in front of (0 is the first, and it defaults to the end). image is the photo inside the circle; children appear over it once it fills the screen.
  • length is how much page scroll the opening takes, in screen heights. The section pins while the circle opens, then scrolls on with the full-screen photo.
  • ground and ink colour the page and the text, and weight sets the line's weight. With reduced motion the circle follows the scroll exactly, without the soft follow.
  • No packages: the photo is one layer clipped to a CSS circle, and the line is drawn twice in the same place, dark on the ground and white inside the circle. One requestAnimationFrame loop, only while the section is on screen.

Iris Scroll, 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