Counter Scrolling Image Bands

(Rolling archive)

Nine years of frames, still moving.

The archive runs in both directions because we could never agree on where it should start.

About this block

Counter Scrolling Image BandsPRO

Two full-bleed image tracks scrolling in opposite directions under a centered statement, pausing together on hover, where any frame opens a framed viewer: the picture sits in a mount on a scrim with its caption, position and controls beneath it.

Gallery7: Counter Scrolling Image Bands

Two bands of photographs drifting in opposite directions behind a centred heading, fading out at both edges. Hovering pauses the drift; opening a frame brings up a framed viewer on a mount rather than a full-screen overlay.

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/gallery7?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/gallery7.tsx plus the badge7 eyebrow it uses.

Quick start

The installed file exports gallery7Demo alongside the block: the exact props behind the preview above. Spread it to get a working gallery in one line.

tsx
import { Gallery7, gallery7Demo } from "@/components/beste/block/gallery7";

export default function Page() {
  return <Gallery7 {...gallery7Demo} />;
}

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

tsx
import { Gallery7 } from "@/components/beste/block/gallery7";

export default function Page() {
  return (
    <Gallery7
      badge={{ label: "Rolling archive" }}
      heading="Nine years of frames, still moving."
      description="The archive runs in both directions."
      topRow={[
        { src: "/archive/table.jpg", alt: "Long table mid-review", caption: "The long table", meta: "Rotterdam, March" },
        { src: "/archive/facade.jpg", alt: "Facade under a flat sky", caption: "Facade", meta: "Rotterdam, April" },
      ]}
      bottomRow={[
        { src: "/archive/stair.jpg", alt: "Stairwell at midday", caption: "Stairwell", meta: "Rotterdam, April" },
        { src: "/archive/prints.jpg", alt: "Prints on a wall", caption: "Prints on the wall", meta: "Studio, January" },
      ]}
      labels={{
        openLabel: "Open this frame",
        closeLabel: "Close the frame",
        previousLabel: "Previous frame",
        nextLabel: "Next frame",
        counterSeparator: "of",
      }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow label rendered as a Badge7
headingstringCentred section heading
descriptionstringCentred paragraph under the heading
topRowMarqueeImage[][]Frames in the band drifting left
bottomRowMarqueeImage[][]Frames in the band drifting right
labelsGallery7Labels{}Fixed strings that are not content: viewer controls and the counter separator
lightboxbooleantrueRender the built-in viewer; set false to leave the frames static
classNamestringExtra classes for the outer <section>
ts
type MarqueeImage = {
  src: string;
  alt: string;
  caption: string;
  meta: string;
};

type Gallery7Labels = {
  openLabel?: string;
  closeLabel?: string;
  previousLabel?: string;
  nextLabel?: string;
  counterSeparator?: string;
};

Behavior notes

  • Each band renders its frames twice and translates by exactly half its width, which is what makes the loop seamless rather than snapping back at the end.
  • The two bands use different durations (40 and 46 seconds) and opposite keyframes, so they never fall into step with each other.
  • Hovering anywhere over the bands pauses both, through a named group (group/gallery7) and [animation-play-state:paused], so a frame can be read before it is clicked.
  • Clicks map back to the original index with a modulo, so pressing a frame in the duplicated half opens the same picture as its twin.
  • Both bands share one index space (top row then bottom row), so the viewer walks the whole archive rather than stopping at the end of a band.
  • The viewer is a mount rather than a full-screen panel: a max-w-4xl card on bg-background over a bg-foreground/80 scrim, with the caption and controls on the mount itself.
  • Edge gradients on both sides fade the bands into the page, and they are pointer-events-none so they never swallow a click on the frame underneath.
  • Setting lightbox={false} disables every frame button and switches the cursor back to default, leaving the bands as a moving wall.

More Gallery blocks

View all Gallery
PRO

gallery5

Filmstrip Stage Viewer

Cinematic stage frame with the caption and frame counter set on a gradient at its foot, round arrow controls on the picture itself, and a scrolling filmstrip below where the inactive thumbnails sit back at low opacity.

PRO

gallery2

Lightbox Frame Grid

Captioned image grid where any tile opens a full-screen lightbox on a dark scrim, with a frame counter, keyboard arrows, escape to close and previous and next controls beside the caption.

PRO

gallery11

Full Bleed Strip With Sheet Viewer

Edge-to-edge strip of tall frames opening a viewer where the picture fills the screen and the caption, note and thumbnails sit in a sheet that slides off the bottom when you want the frame uncovered.

PRO

gallery14

Walkthrough Exhibition Rail

Long-scroll exhibition where every work sits in its own matted panel with a full label, beside a sticky rail whose numbered index follows the work in the middle of the screen and scrolls to any other on click.

PRO

gallery3

Filterable Album Grid

Album gallery with pill filters that swap the whole set below, where any tile opens a light full-screen viewer: the frame hangs on the page surface while a side column carries the caption, the album summary, the controls and a plainly labelled thumbnail index.

PRO

gallery20

Paired Hang Compare

Works hung two to a bay on staggered ruled cards, opening a viewer that can hold a second work beside the first: the frame splits, both pictures keep their own caption and the pair can be walked together.