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.
Inside, the graph is the rule: the faster you scroll, the more the rows lean, up to a limit. Dashed rows show a quick scroll's lean; scroll fast and stop.
Stays straight never leans; Leans with speed tips its rows while you scroll fast and straightens when you stop, shown dashed at rest. Scroll fast and stop, or press Play.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.