shadcn.io is not affiliated with official shadcn/ui
Band Layout Gallery Block for React
Four full-width cinematic bands of one drawn valley at dawn, noon, dusk and night, each drifting as it crosses the screen, with a caption and a Read the note disclosure under every band.
Installation
Overview
A banded gallery for React with Base UI, for Dayframe, a time-lapse camera. Four wide bands run from rail to rail between hairlines with + marks at their corners: dawn, noon, dusk and night over the same drawn valley, the sun or moon standing where the hour puts it, the sky and the ridges darker as the day ends, and a village on the near ridge whose windows are lit from dusk to dawn. Under every band a caption gives the hour, a title and the place, and a Read the note disclosure opens a paragraph on that frame. In browsers with scroll-driven animations each picture drifts a little inside its band as the band crosses the screen, in plain CSS behind a feature query; elsewhere, and under reduced motion, it holds still. The last band ends the block. The pictures are drawn, not photographed. It's built from Collapsible, Badge and Guides, with your theme's tokens for every colour. The camera and the valley are made up for the example.
FAQ
How does the picture drift with no script?
Each picture is a taller layer inside a clipping band. The layer runs the page's entrance keyframe on a scroll timeline (animation-timeline: view()), from the moment the band appears to the moment it leaves, and it sits a little low so the drift passes through its resting place. All of it is behind @supports (animation-timeline: view()) and motion-safe, so a browser without scroll timelines, or a visitor who asked for less motion, gets a still picture. The band clips with overflow-clip, because a hidden box would become the timeline's scroller instead of the page.
How is one valley drawn at four times of day?
The four scenes share one drawing: ridges, a village and furrows, with a table per hour for the sun's place and size, how many windows are lit and how dark each ridge is. Dawn and dusk set the sun on the horizon, noon puts it high and night swaps it for a moon and a field of stars. Nothing is random at render time, so the server and the browser draw the same picture.
How do the notes open?
Each band has its own disclosure with a visible "Read the note" trigger that reports its state with aria-expanded. Opening one grows only that band's caption; the others stay put. The notes are text in the page, not a tooltip, so they are available on touch.
A closed note stays in the HTML, hidden, so it can be found by the browser's in-page search.
Are the times real?
They are fixed in the data: one day, 14 June 2025, at 05:42, 12:10, 19:48 and 23:30, each in a time element with its full date and time. Nothing is computed from the visitor's clock.
What changes on a phone?
The bands become sixteen by nine, with the sun and the near hills in the middle of the picture, and the caption's place is hidden so the title and the Read the note trigger fit on two short lines.
How do I use my own photographs?
Each band in BANDS has an hour, a title, a place, a note and a description. Add your image's address to it and replace the Scene with <img alt="" className="size-full object-cover" src={…} />; keep the layer around it, which makes the drift. The comment above Scene says where.
Related
- Pro
Panorama Viewer Gallery
Compare, crop and zoomA drawn alpine valley seven times wider than tall in a framed scroll region you can drag or scroll with the arrow keys, with a minimap that follows the view, a zoom slider from 100% to 300% and a Reset button.
- Pro
Ken Burns Slideshow Gallery
Carousels and slidesA framed viewer that runs rail to rail with five drawn stills, each panning and zooming slowly for seven seconds before crossfading to the next, with a caption, segments that fill with the time, Previous, Next and a visible Pause.
- Pro
Picture Timeline Gallery
Rows and bandsA vertical timeline of drawn pictures hung on a hairline through five years of a tools maker's story, with a year index that marks the year in view, jumps on choosing one and becomes a row of chips on a phone.
- Pro
Paginated Minimal Grid Gallery
Hairline gridsA quiet grid of twenty-four drawn concrete-architecture plates, eight to a page on shared hairlines, with a title and year that appear on hover and focus and the catalog pagination in a band that ends the block.
- Pro
Scroll Progress Ruler Track Features
Timelines and stepsA features section for an analytics SDK: a sticky ruler of six anchor-link ticks that follows six full sections as you scroll, lighting the tick of the section on screen with a sliding thumb.
- Pro
Tilt Parallax Card Grid Features
Card gridsSix IDE-tool cards on a tinted panel beside a sticky header: each card's drawing is three layers at different depths that tilt in 3D toward the pointer and drift apart, flat on touch screens and with reduced motion.