01.23 · Scroll-Based

Scroll Velocity Skew

Rows lean when you scroll fast and straighten when you stop. Best for galleries.

Scroll it

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

Try it

Change a setting, then scroll again or press Play.

Strength

How far the rows lean for the same scroll speed.

Lean

Tilt tips each row; Slant leans it like italics.

Spring back

How quickly the rows react and straighten again.

More optionsFewer options

Most it leans

A limit, so a hard flick cannot fold the rows over.

Copy the prompt

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

Add a velocity skew to [the rows or cards in your list or gallery]. Measure how far the list scrolls on each frame, smooth that speed so it rises and falls gradually, and lean every row by an angle in proportion to it, up to a limit. Fast scrolling leans the rows; when the scrolling stops, the speed falls to zero and they spring back straight. Lean each row on its own rather than the whole list, and stop the frame loop once everything is still. This effect can make some people feel unwell, so if the visitor has reduced motion turned on, keep the rows straight and scroll normally. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

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

  • Galleries
  • Portfolios
  • Project lists

Avoid on

  • Reading content
  • Forms