Skip to content
Added 2 Sept 2026
Back to library
accordion-photo-strip-15715
Accordion Photo Strip
Avatars & Images

Accordion Photo Strip

Five narrow photo slices where the hovered one expands to more than three times its share and lights up while the rest dim, its caption rising from the bottom edge.

Avatars & Imagesaccordiongallerystripexpandimage
lines of CSS
41lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
motion only on interaction
Hovermotion only on interaction
Backdrop
DunesHarbourCanopyRidgeTundra
Open a live copy in

Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.

accordion-photo-strip-15715.css
.fx-v14-av-accordion-15714 {
  display: flex;
  gap: 4px;
  width: 248px;
  height: 118px;
}
.fx-v14-av-accordion-15714 i {
  position: relative;
  flex: 1 1 0;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}
.fx-v14-av-accordion-15714 .s1 { background: linear-gradient(160deg, #fbbf24, #b45309); }
.fx-v14-av-accordion-15714 .s2 { background: linear-gradient(160deg, #38bdf8, #1e40af); }
.fx-v14-av-accordion-15714 .s3 { background: linear-gradient(160deg, #34d399, #065f46); }
.fx-v14-av-accordion-15714 .s4 { background: linear-gradient(160deg, #f472b6, #831843); }
.fx-v14-av-accordion-15714 .s5 { background: linear-gradient(160deg, #a5b4fc, #3730a3); }
.fx-v14-av-accordion-15714 i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2,6,23,0.75), transparent 55%);
}
.fx-v14-av-accordion-15714 i b {
  position: absolute;
  left: 9px;
  bottom: 8px;
  z-index: 1;
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
  color: #f8fafc;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease 0.08s, transform 0.32s ease 0.08s;
}
.fx-v14-av-accordion-15714:hover i { filter: brightness(0.55) saturate(0.6); }
.fx-v14-av-accordion-15714 i:hover { flex-grow: 3.4; filter: none; }
.fx-v14-av-accordion-15714 i:hover b { opacity: 1; transform: translateY(0); }
accordion-photo-strip-15715.html
<div class="fx-v14-av-accordion-15714">
  <i class="s1">
    <b>Dunes</b>
  </i>
  <i class="s2">
    <b>Harbour</b>
  </i>
  <i class="s3">
    <b>Canopy</b>
  </i>
  <i class="s4">
    <b>Ridge</b>
  </i>
  <i class="s5">
    <b>Tundra</b>
  </i>
</div>

What do I do with this?

  1. Put accordion-photo-strip-15715.css anywhere your page already loads CSS from — in Next.js that is app/globals.css, or any stylesheet with a <link> in your HTML.
  2. Then put the class on the element you want it on: <button class="fx-v14-av-accordion-15714">. The CSS does nothing until a class name in it matches something on the page.
  • Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add accordion-photo-strip-15715

What's included

  • The markup and the stylesheet, in whichever framework you pick
  • No runtime dependencies

Works with

  • React
  • Vue
  • Svelte
  • Tailwind
  • styled-components
  • Plain CSS

npx hoverlab add accordion-photo-strip-15715

Or over MCP, from your editor's agent — no account needed.

License

Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.

Was this useful?

Motion safety

Static estimate, read from the CSS

Reduced motion
Brief motion, no guard

Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.

What it animates
Reflows

Animates flex-grow. The browser re-lays-out the page on every frame; prefer transform if you can.

Flashing (WCAG 2.3.1)
No flashing found

No repeating change in opacity, colour or brightness large enough to count as a flash.

Layout shift (CLS)
May shift layout

Animates flex-grow on a box in flow, so content beside or after it can move. Measured in Chromium: layout-shift score 0.0010 across 21 shifts in 7.6 s, one preview with a neighbour beside it. Not a page-level CLS.

Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed

31 more effects in Avatars & Images

All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.

Browse Avatars & Images

Shipping one commercially

Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.

  • A commercial licence for everything in the catalog
  • Unlimited bundle exports, in Vue, Svelte and Tailwind
  • One payment — no subscription, nothing to renew
Pro — $79 once

7 variations of Accordion Photo Strip

Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.