Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultUI componentsCursor Rail Card List
Pixel Hover NavBrowse all 182Stacked Drawer Menu
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Cursor Rail Card List

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

    Setup

    npm i gsap

    More like this

    • Card
    • List
    • Timeline

    Features.

    • Square image cards alternate either side of a centre divider, with a dotted ruler down the left edge
    • A thin accent rail spans the list at the pointer's height and follows it with a short, frame-rate independent lag
    • The item under the rail shows its title bar on the side opposite its card, centred on the rail
    • Hand-over between items: the old bar shrinks toward the divider and fades, the new one grows out of it a beat later
    • Rail and bars are fixed to the viewport, so scrolling never makes them judder; the active item updates as the list slides under them
    • Starts where the pointer is, even when it is already over the list
    • Cards scale down and fade in once as they scroll into view
    • Stacks into cards with static title bars below 992px and on touch screens
    • No dependencies; the frame loop only runs while the rail is catching up
    • Respects prefers-reduced-motion

    How to get it right.

    Keep the parent untransformed

    The rail and the bars are position: fixed. A transform, filter or perspective on any ancestor turns that into "fixed to the ancestor" and they drift off. Put the section directly in the page flow, not inside an animated wrapper.

    Use square pictures

    Cards are 1:1 and crop with object-fit: cover. Square originals at 1200–2000px keep the reveal crisp, since the picture starts at 1.25× its size.

    Keep bar copy short

    The bar is half the list wide and ships with a one-word title. To add a line, put <p class="rls_text"> between the title and the square, or pass text in React, and keep it under about 60 characters. Longer text wraps and makes the bar taller than the gap between items.

    Leave the lag where it is

    data-au-lerp="0.36" trails just enough to feel like a guide rather than a cursor. Go to 0.15–0.2 for a slow, deliberate rail; 1 pins it to the pointer.

    Variations.

    • Default — accent rail, light bars on a dark section
    • Quiet — data-au-color="#bdb6aa" for a grey rail that lets the pictures lead
    • Light — set --rls-bg light, --rls-fg and --rls-bar-bg dark, --rls-bar-fg light, --rls-line to a dark hairline
    • Still cards — data-au-reveal-scale="1" for a plain fade-in

    Where it fits.

    • Process section — four or five steps, one picture each
    • Services list — each row a discipline with a one-line promise
    • Values or "why us" — short claims next to studio photography
    • Case study chapters — the stages of a project, the rail marking where you are

    Frequently asked.

    An ancestor has a transform, filter or perspective, which changes what position: fixed is measured from. Remove it, or move the section outside that wrapper.

    By design: below 992px, and on any device without hover, the list stacks and each title bar sits under its card.

    Yes. Copy an [data-rls-item] row and alternate rls_item--card-left / rls_item--card-right. The script picks up every row on init; call window.au.RailList.refresh() after adding rows later.

    No. It runs on its own, and works the same with or without smooth scrolling on the page.

    Related components.

    Pro

    Image Slide Tabs

    Click

    Pro

    Glow Band Sheet Modal

    Click

    Pro

    Expanding Card Modal

    Click