Skip to content
Added 17 Aug 2026
Back to library
expanding-panel-carousel-15313
Expanding Panel Carousel
Sliders & Carousels

Expanding Panel Carousel

Four vertical strips where the selected panel expands to reveal its caption, driven by hidden radios with no JavaScript.

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

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

expanding-panel-carousel-15313.css
.fx-v12-sl-panels-15312 { position: relative; width: 250px; height: 130px; }
.fx-v12-sl-panels-15312 input { position: absolute; opacity: 0; pointer-events: none; }
.fx-v12-sl-panels-15312 .strip {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 100%;
}
.fx-v12-sl-panels-15312 label {
  flex: 1;
  position: relative;
  border-radius: 0.6rem;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}
.fx-v12-sl-panels-15312 .p1 { background: linear-gradient(160deg, #6366f1, #1e1b4b); }
.fx-v12-sl-panels-15312 .p2 { background: linear-gradient(160deg, #0ea5e9, #0c4a6e); }
.fx-v12-sl-panels-15312 .p3 { background: linear-gradient(160deg, #f59e0b, #78350f); }
.fx-v12-sl-panels-15312 .p4 { background: linear-gradient(160deg, #10b981, #064e3b); }
.fx-v12-sl-panels-15312 label span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.5rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fx-v12-sl-panels-15312 label:hover { filter: brightness(1.15); }
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-a:checked ~ .strip .p1,
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-b:checked ~ .strip .p2,
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-c:checked ~ .strip .p3,
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-d:checked ~ .strip .p4 { flex: 4; }
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-a:checked ~ .strip .p1 span,
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-b:checked ~ .strip .p2 span,
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-c:checked ~ .strip .p3 span,
.fx-v12-sl-panels-15312 #fx-v12-sl-panels-15312-d:checked ~ .strip .p4 span { opacity: 1; transform: none; }
expanding-panel-carousel-15313.html
<div class="fx-v12-sl-panels-15312">
  <input type="radio" name="fx-v12-sl-panels-15312" id="fx-v12-sl-panels-15312-a" checked />
  <input type="radio" name="fx-v12-sl-panels-15312" id="fx-v12-sl-panels-15312-b" />
  <input type="radio" name="fx-v12-sl-panels-15312" id="fx-v12-sl-panels-15312-c" />
  <input type="radio" name="fx-v12-sl-panels-15312" id="fx-v12-sl-panels-15312-d" />
  <div class="strip">
    <label for="fx-v12-sl-panels-15312-a" class="p1">
      <span>Alps</span>
    </label>
    <label for="fx-v12-sl-panels-15312-b" class="p2">
      <span>Coast</span>
    </label>
    <label for="fx-v12-sl-panels-15312-c" class="p3">
      <span>Dunes</span>
    </label>
    <label for="fx-v12-sl-panels-15312-d" class="p4">
      <span>Fjord</span>
    </label>
  </div>
</div>

What do I do with this?

  1. Put expanding-panel-carousel-15313.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-v12-sl-panels-15312">. 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 expanding-panel-carousel-15313

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 expanding-panel-carousel-15313

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. 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 on a box in flow, so content beside or after it can move. A category from the CSS, not a measurement for this effect.

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

29 more effects in Sliders & Carousels

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 Sliders & Carousels

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 Expanding Panel Carousel

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