01.14 · Scroll-Based

Horizontal Scroll

Scroll down and a row of panels slides sideways. Best for portfolios.

Scroll it

Scroll inside the box, or press Play and it scrolls for you.

You scroll down

The whole strip

In the box

Stacked ↑

Slides sideways ←

Scroll down ↓

Scroll down, move sideways
The panels sit side by side in one long strip. As you scroll down, the strip slides left, one panel at a time.
The box holds still
While the strip slides, the section around it stays pinned in place, so the page seems to pause.
Your scroll does the work
There is no sideways scrolling to learn. The ordinary scroll you already use moves everything.
Scroll back, it slides back
The strip follows your scroll exactly, so scrolling up brings the earlier panels back.
Then the page moves on
Once the last panel is in view, the section lets go and the page scrolls on as normal.

The page moves on ↓

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a horizontal scroll section to [the panels or projects you want to show]. Place the panels side by side in one long strip inside a section that is several screens tall. As the visitor scrolls down through that section, pin its inner frame in place and slide the strip to the left in step with the scroll, so scrolling down moves the panels sideways; once the last panel is in view, release the frame and let the page scroll on. Give the strip an explicit width so it can move. Keep the visitor's own scrolling, touch included, so scrolling back up slides the panels back. If the visitor has reduced motion turned on, keep the strip tied exactly to their scrolling, with no easing or snapping added.

Replace the words in brackets with your own panels.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Portfolios
  • Timelines
  • Product features
  • Step-by-step tours

Avoid on

  • Long text
  • Forms