Accordion Spread
Spice-market labels — saffron, paprika, turmeric, cardamom strips compressed flat; hover expands the active strip with its name in full.
Accordion Spread the 9th of 22 designs in the 22 CSS Stacked Card Designs collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<div class="scd-acc"> <div class="scd-acc__c" style="--c: #e8a02e; --t: #3a2a0a">SAFFRON</div> <div class="scd-acc__c" style="--c: #c44e2e; --t: #fff">PAPRIKA</div> <div class="scd-acc__c" style="--c: #f4c430; --t: #3a2a0a">TURMERIC</div> <div class="scd-acc__c" style="--c: #3a5a3d; --t: #fff">CARDAMOM</div> </div>
.scd-acc {
display: flex; gap: 0;
width: 240px; height: 140px; margin: 0 auto;
border: 2px solid #1a1a1a; border-radius: 4px; overflow: hidden;
cursor: pointer;
background: #1a1a1a;
}
.scd-acc__c {
flex: 1;
background: var(--c);
color: var(--t);
display: flex; align-items: center; justify-content: center;
font: 800 11px/1 ui-monospace, monospace;
letter-spacing: 0.22em;
writing-mode: vertical-rl; transform: rotate(180deg);
transition: flex .45s cubic-bezier(.3,1,.3,1);
border-right: 2px solid #1a1a1a;
position: relative;
}
.scd-acc__c:last-child { border-right: none; }
.scd-acc__c::before {
content: ''; position: absolute; inset: 4px;
border: 1px dashed currentColor; opacity: 0.3;
pointer-events: none;
}
.scd-acc__c:hover { flex: 5; writing-mode: horizontal-tb; transform: none; letter-spacing: 0.32em; }