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.

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.

More optionsFewer options

How much rows shrink

The size a row shrinks to at the edge.

Tints the two bands where rows fly in and out.

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.

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

  • Contact lists
  • Chat lists
  • Activity feeds
  • Search results

Avoid on

  • Short lists
  • Tables