Block 292 of 297
Timeline Carousel
Your history as a draggable panel of milestones synced to a year scrubber whose marker glides to the active year.
- Puck key
- TimelineCarouselBlock
- Export
- timelineCarouselBlock
- React component
- <TimelineCarousel />
- Files
- components/puck/timeline-carousel-block.tsx
- components/puck/timeline-carousel.client.tsx
- Dependencies
- gsap
- License
- MIT (GSAP has its own license)
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
An organization's history as one milestone at a time: a landscape photo beside a large year, title and story, with a row of year buttons above that works as a scrubber. A marker glides to the active year, and visitors can also drag the panel. On phones the photo stacks above the text and the year row scrolls sideways.
- An about page history or anniversary feature
- Capital project or campaign phases over time
- A program's growth story in a grant or annual report page
Writing the content
- Keep Year short, such as "1987" or "Spring 2020"; it labels the scrubber button.
- Milestones allows 1 to 12. Six to eight keeps the year row readable without scrolling on most screens.
- Image URL works best as a 4:3 landscape photo; leave it blank and the text spans the full width.
- Fill Image description for each photo that shows something specific.
Accessibility
- Year buttons mark the active one with aria-current="step" and include the milestone title as hidden text.
- Arrow keys, Home and End move between milestones and walk focus along the years; next and previous buttons are 44px (WCAG 2.1.1).
- Inactive milestones are inert, a polite live region announces the current one, and reduced motion removes drag momentum.
Customizing the code
- Requires gsap and timeline-carousel.client.tsx. Year size is text-6xl sm:text-7xl lg:text-8xl in indigo-600, and the marker is the ring-indigo-600 dot.
- Milestone titles render one heading level below the section heading via NEXT_LEVEL.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Milestonesarray