01.05 · Scroll-Based
Fly-in Fly-out Contact List
Rows fade and slide as they near the top or bottom edge. Best for long lists.
Scroll it
Scroll inside the box, or press Play and it scrolls for you.
Inside, rows leave through the top band and arrive through the bottom one; a dashed outline marks each row's resting place, so the gap shows the move. Scroll the box or press Play to watch.
In Plain list, rows are cut off at the edges; in Flying rows they fade, slide and shrink as they near an edge. Scroll the box or press Play to watch.
Try it
Change a setting, then scroll again or press Play.
Effect
All three moves, fades and shrinks each row together.
Edge zone size
How close to the edge a row starts to fly out.
How far rows move
The distance a row slides as it leaves.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a fly-in, fly-out effect to [your scrolling list, such as contacts or messages]. Treat a band at the top and a band at the bottom of the scrolling area as edge zones. As a row passes through the bottom band it arrives, and as it passes through the top band it leaves: the deeper it is in the band, the more it is faded, moved and shrunk, as the settings choose, and in the middle it shows in full. Work it out from the scroll position on every frame, so scrolling back brings rows back. If the visitor has reduced motion turned on, do not move or shrink rows; only fade them a little near the edges. 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.