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
VaultSliders & marqueesTeam Card Slider
Testimonial GlobeBrowse all 182Dotted Locations Globe
  • 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

Team Card Slider

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

  • gsap
  • CustomEase
  • Draggable

Setup

npm i gsapregisterPlugin(CustomEase, Draggable)

More like this

  • Card
  • Carousel
  • Draggable

Features.

  • A rail with a column of team chips and an arrow pill, beside a strip of equal cards that runs off the right edge of the page
  • A chip swaps the strip to that team: the leavers fade and drop away fast, then the new team rises in one card after another
  • Drag the strip, use the arrows or press ← / → to travel card by card, 0.8s on the house curve; it always lands on a card, whatever interrupts it
  • Click a photo to fade a dark, blurred profile over it with the name, role and one short line; Escape, the close button or a press anywhere else closes it
  • The card you are on is the only one in full colour; the rest sit slightly washed out. At the end of the strip the arrows carry the highlight on to the last cards
  • Cards fully out of the strip can't be reached by Tab; focus on a part-visible card brings it in, and moves and team changes are announced to screen readers
  • The photo height is capped so the whole section fits the screen, so nothing ever resizes or scrolls inside it
  • 2.4 cards in view from 992px up, 1.15 below; cards in view and travel time are options
  • Respects prefers-reduced-motion: travel, filter and profile jump straight to their end state
  • GSAP with Draggable and CustomEase

How to get it right.

Give every card a team

Each card's data-rst-group must match a chip's data-rst-filter. A chip with data-rst-filter="all" shows everyone. The first chip's team shows on load, or the chip you mark aria-pressed="true".

Use portrait photos

Photos are cropped to 4:5 and shown up to about 450px wide at 1440px. Export them around 900px wide. They're framed from 20% down, so faces near the top stay in view when the height cap trims the bottom.

Keep the bio short

The profile sits over the photo, bottom aligned. One short line reads best; a long bio runs up under the close button on small cards.

Add extras when you need them

Cards ship with a photo, a name and a profile. Each of these is styled and ready:

  • Section title: <h2 class="rst_title">Your title</h2> first in .rst_intro, or the title prop in React
  • Role under the name: <span class="rst_role">Commander</span> after .rst_name
  • Links in the foot: <div class="rst_links"> holding <a class="rst_link"> buttons after .rst_id, or href and email on a person in React

Three cards or more per team

With fewer cards than fit in view the strip has nowhere to go, and the arrows only move the highlight. That's fine for a small team, but the slider reads best with a few cards off the edge.

Variations.

  • Default — 2.4 cards in view, 0.8s travel
  • Big portraits — data-au-per-view="1.6"
  • Dense roster — data-au-per-view="3.4"
  • Snappy — data-au-duration="0.4"
  • Your colours — override the --rst-* variables; --rst-margin and --rst-gap set the edges and the space between cards

Where it fits.

  • Team pages — departments as chips, people as cards
  • Speaker line-ups — tracks or days as chips
  • Artist rosters — agencies and labels sorting by discipline
  • Crew credits — film, theatre or expedition crews by role

Frequently asked.

Yes. Put aria-pressed="true" on the Everyone chip (and "false" on the rest), or move it to the front.

Below 992px the chips move into a row above the strip, 1.15 cards are in view, the margins halve and the arrows get a little smaller. Drag still works, and vertical scrolling and pinch stay with the page.

Yes. Tab to the strip and use ← / →; keys with a modifier stay with the browser. Each photo is a button: Tab to it and press Enter to open the profile, Escape to close it, and focus goes back to the photo. The chips are buttons with aria-pressed.

Yes. Every root runs on its own.

Yes: gsap, CustomEase and Draggable, loaded before the script.

Related components.

NewPro

Ink Bloom Slider

Click

Pro

Rotating Ring Timeline

Drag

Pro

Ruler Card Carousel

Drag