Skip to content

Block 294 of 297

Coverflow Carousel

Image cards fanned out in 3D around a spotlit center card with its caption. Drag, throw, buttons or arrow keys.

Puck key
CoverflowCarouselBlock
Export
coverflowCarouselBlock
React component
<CoverflowCarousel />
Files
components/puck/coverflow-carousel-block.tsx
components/puck/coverflow-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

A dark gallery section where portrait image cards fan out in 3D on either side of a centered card, with the center card's title and caption shown beneath. Visitors drag, flick, click the arrow buttons or use the keyboard to move through. With reduced motion or without JavaScript it falls back to a flat, swipeable strip.

  • Artworks in an exhibition or open call
  • Book covers, album art or publication covers
  • Featured products, posters or event series artwork
Writing the content
  • Cards allows up to 15. Use 3:4 portrait images at least 720px wide so the side cards don't look stretched.
  • Caption shows only while a card is centered; keep it to artist, year and medium or a single line of context.
  • Fill Image description for every card, since the image is the main content here.
  • Carousel name is read by screen readers only, such as "Works in the exhibition".
Accessibility
  • The carousel is a labelled region; each card is a figure with its caption, announced as "3 of 8".
  • Arrow keys, Home and End move the center card, the previous and next buttons report aria-disabled at the ends, and a live region announces the current card (WCAG 2.1.1).
  • Reduced motion keeps the flat strip with no 3D transforms (WCAG 2.3.3), and side cards are inert in the 3D layout.
Customizing the code
  • Requires gsap and coverflow-carousel.client.tsx. In layout(), rotationY: 50 sets the fan angle, z: -150 sets depth per step, and the 0.62 spacing factor sets overlap.
  • Card width is w-60 sm:w-72 lg:w-80, and the glow behind the stage is bg-indigo-500/20.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Carousel nametext
  • Cardsarray