Sticky Header Linked Cards

About this block

Sticky Header Linked CardsPRO

The heading, intro and pill stay pinned in a sticky column while linked photo cards scroll past in pairs beside them, each photograph drifting inside its frame under a serif title, a meta line and an arrow that lifts on hover.

Feature303: Sticky Header Linked Cards

The heading, intro and pill stay pinned while linked photo cards scroll past in pairs beside them.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/feature303?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/feature303?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/feature303.tsx plus the button22 sliding-marker pill and the text1 word stagger it uses.

Quick start

The installed file exports feature303Demo alongside the block: the exact props behind the preview above. Spread it to get a working sticky Header Linked Cards in one line.

tsx
import { Feature303, feature303Demo } from "@/components/beste/block/feature303";

export default function Page() {
  return <Feature303 {...feature303Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Feature303 } from "@/components/beste/block/feature303";

export default function Page() {
  return (
    <Feature303
      eyebrow="Where sessions happen"
      heading="Four places to be heard."
      description="Each one opens its own page."
      button={ label: "See all locations", href: "/rooms", tone: "outline" }
      cards={[
        {
          title: "The front room",
          description: "Two armchairs and a door that closes properly.",
          meta: "Rua da Prata, second floor",
          href: "/rooms/front",
          image: { src: "/rooms/front.jpg", alt: "A sunlit room with two low armchairs" },
        },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
eyebrowstringSmall-caps line above the heading
headingstringSection heading, rendered as an h2 through Text1
descriptionstringIntro paragraph in the sticky column
buttonActionButtonPill action under the intro
cardsCard[][]Linked photo cards, two across from sm
classNamestringExtra classes for the outer <section>
ts
type Card = {
  title: string;
  description: string;
  meta?: string;
  href: string;
  image: Image;
};

type Image = { src: string; alt: string };

type ActionButton = {
  label: string;
  href: string;
  tone?: "primary" | "light" | "dark" | "outline";
};

Behavior notes

  • The left column is lg:sticky lg:top-24, so the heading holds while the cards move; below lg it simply stacks and the stickiness is dropped.
  • The whole card is one Link, photograph included, so there is no separate hit target for the title.
  • Each card owns its own scroll listener and drifts -8% to 8% against a 1.18 scale, so the pairs do not move in lockstep.
  • Photos clear from blur(24px) on decode, with a complete check on mount so a cached file does not stay blurred.
  • meta sits under the title rather than beside it, so a long address wraps without pushing the arrow off the card.
  • Entry delay alternates on index % 2 so a row of two arrives a beat apart.

More Feature blocks

View all Feature
PRO

feature311

Linked Photo Cards

Three bordered cards, each one a whole link with a photograph drifting across its top, a quiet category line, a serif title, an excerpt and an arrow pinned to the foot of the card.

PRO

feature291

Photo Tiles

Four linked photo tiles in a two-by-two grid, each photograph drifting inside its tile under a soft scrim with a serif title, a line of description and an arrow that lifts on hover, beneath a serif heading that settles in word by word and a sliding-marker pill.

PRO

feature250

Sticky Photo With Notes

A single tall photograph pinned with position sticky, captioned without a rule, while a column of eyebrow-led notes scrolls past it, each note after the first opening on its own hairline.

PRO

feature306

Two Linked Doors

Two tall cards, each one a whole link: a photograph that drifts inside its frame above a quiet label, a serif title, an intro, a short dotted list and a closing arrow link pinned to the foot of the card.

PRO

feature301

Linked Card Rail

A horizontal rail of linked cards that starts in line with the heading and bleeds off the right edge: arrow buttons and snap points move it a screen at a time, and each card pairs a drifting photograph with a serif title, a meta line and an arrow that lifts on hover.

FREE

feature180

Sticky Image Scroller

Two-column layout with sticky image and scrollable feature cards