Component · Carousels and galleries

Accordion gallery of a coast path

by Informeek Studio 11 November 2026
Live Hover or tap a stage, then add it to your route

The prompt

Build an accordion gallery for a fictional walking guide, Long Shore Walks on warm paper (#f1ece2) with teal ink (#1b2a2f): a small brand, the serif headline "The Merrow Coast Path, 71 miles in six stages" with "71 miles" in italic rust (#b5532f), and a white pill "My route, 0 of 6 stages". Below, six panels 470px tall with 12px gaps, each skewed -7 degrees with 20px corners and its contents skewed back. Each is a four layer SVG landscape: dawn cliffs, a morning harbour, a midday lighthouse, afternoon dunes, a sunset estuary with a heron and a stone circle under stars. Closed panels have flex-grow 1 with the stage number in its accent colour and a vertical name; the open one grows to 6.2 over 750ms on cubic-bezier(.2,.8,.2,1). Open on hover after a 90ms pause, click, tap, focus or arrow keys. The open panel shows "Stage 03, Midday", a serif title, a sentence, chips for miles, ascent and time, and an "Add to my route" toggle that updates the pill; its layers follow the mouse by 3 to 34px and drift when idle. Below, 48px prev and next buttons, a progress line and "03 / 06". Under 640px stack 42px bands, the open one filling the rest with prev and next inside, and allow a sideways swipe. Reduced motion removes drift and easing.

Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by swapping the stages for your own rooms, products or chapters.

About this accordion gallery

An accordion gallery keeps every picture on screen and lets one of them take the room. Here six stages of a coast path sit side by side as tall slanted strips, and whichever one you point at, tap or tab to swings open while the rest fold down to a number and a name. The strips are skewed, but the scenes inside are turned back upright, so the landscape never looks bent.

Each scene is a layered SVG drawing for a different time of day, so the row reads like a walk from sunrise to starlight. Inside the open panel the layers slide at different speeds as the mouse moves, and drift by themselves on a phone. On a narrow screen the row turns into a stack of bands with the open one filling the space, and a sideways swipe moves along the path.

Why the prompt works

  • It gives both flex values and the easing, which is what makes the opening feel weighty.
  • It adds a hover pause of 90ms so a passing cursor does not flicker the row.
  • It describes every scene, so the gallery tells a story rather than repeating a placeholder.
  • It plans the phone layout as vertical bands, not a squashed row.

Where to use it

Walking and travel guides, hotel rooms, course modules and product ranges with five to eight strong pictures.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Component · Carousels and galleries

Masonry layout for a pattern library

Live
Component · Carousels and galleries

3D image gallery inside a museum dome

Live
Component · Carousels and galleries

WebGL animation of flying theatre posters