26 CSS Accordions — Vertical & Horizontal
A CSS accordion is a collapsible content panel that hides and reveals a section on click. These 26 hand-coded designs are full-featured FAQ blocks, nav sections, and disclosure panels you can drop into a project today — copy the markup, swap your content, and ship.
Frequently asked questions
How do I build an accordion in pure CSS?
Can a CSS accordion work without JavaScript?
How do I animate an accordion open and close smoothly in CSS?
What's the difference between a vertical and horizontal accordion?
Are these CSS accordions accessible?
Related collections
22 CSS Breadcrumbs
22 original CSS breadcrumb designs — underline grow, pill, diagonal slash, neon trail, brutalist, frosted glass, vertical stacked, progress track, holographic shimmer and more.
21 CSS Circular & Radial Menu Designs
21 free CSS circular and radial menu designs — pie, dome, orbital and skeumorphic layouts with copy-paste HTML and CSS.
22 CSS Dropdown Menu Designs
22 hand-coded CSS dropdown menu designs with live demos — slide-down fade, clip-path curtain reveal, 3D perspective flip, elastic bounce spring, glassmorphism float panel, stagger children reveal, mega-menu grid, underline nav fade, native details/summary, checkbox-hack mobile nav, nested multi-level flyout, icon sidebar flyout, split-screen mega-menu, segmented pill nav, color swatch picker, right-click context menu, keyboard-accessible roving tabindex, stagger blur entrance, command palette search, autocomplete suggestion, click-outside close, and multi-select chip. 15 pure CSS + 7 with a tiny vanilla JS snippet — no framework. WCAG 2.2 aria-expanded + aria-haspopup + focus management, prefers-reduced-motion honoured, MIT licensed.