Post thumbnail: 24 CSS Accordions

Tags      accordion css examples


24 CSS Accordions

Collection of free HTML and CSS accordions with little JavaScript: horizontal and vertical. Demo and code.

Update of April 2017 collection. 9 new items.

The accordion is a graphical control element comprising a vertically stacked list of items, such as labels or thumbnails. Each item can be “expanded” or “stretched” to reveal the content associated with that item. There can be zero expanded items, exactly one, or more than one item expanded at a time, depending on the configuration.
The term stems from the musical accordion in which sections of the bellows can be expanded by pulling outward.
A common example of an accordion is the Show/Hide operation of a box region, but extended to have multiple sections in a list.

Table Of Contents

  1. Horizontal Accordions
  2. Vertical Accordions

Horizontal Accordions

Demo image: CSS3 accordion slider with Transitions and Flexbox

Author

  • fox_hover

Made with

  • HTML
  • CSS/SCSS

About the code

CSS3 Accordion Slider With Transitions And Flexbox

CSS3 accordion with 5 different effects.

Demo Image: Expanding Horizontal Accordion in React
Demo Image: Expanding Horizontal Accordion In React

Expanding Horizontal Accordion In React

A quick alternative to the standard ‘Accordion’ pattern, built completely with React.
Made by Sean
January 7, 2017

Demo Image: Pure CSS Accordion
Demo Image: Pure CSS Accordion

Pure CSS Accordion

Image accordion only with CSS and color filters using the rgba() function.
Made by Eduardo Moreno
November 26, 2016

Demo Image: Responsive Accordion
Demo Image: Responsive Accordion

Responsive Accordion

Responsive accordion (background images).
Made by Michael Ferry
October 1, 2015

Demo Image: Accordion Navigation
Demo Image: Accordion Navigation

Accordion Navigation

No javascript, no flexbox.
Made by Oliver Knoblich
August 25, 2015

Demo Image: Flexbox Accordion
Demo Image: Flexbox Accordion

Flexbox Accordion

Simple horizontal flexbox accordion.
Made by Arjan Jassal
December 28, 2014

Vertical Accordions

Demo image: Accordions Pls

Author

  • Ryan

Made with

  • HTML/Pug
  • CSS/SCSS
  • JavaScript/Babel (Vue.js)

About the code

Accordions Pls

Vertical accordion with HTML, CSS and JS (Vue.js).

Demo image: Accordion With Input Edit

Author

  • Jorge Brunetto

Made with

  • HTML
  • CSS

About the code

Accordion With Input Edit

Pure CSS accordion with input edit.

Demo image: Accordion In Js

Author

  • Davide Cantelli

Made with

  • HTML
  • CSS/SCSS
  • JavaScript

About the code

Accordion In Js

Accordion in vanilla JS with CSS transition.

Demo image: Accordion 2.0

Author

  • Stelios Baglaridis

Made with

  • HTML
  • CSS
  • JavaScript

About the code

Accordion 2.0

Vertical accordion with HTML, CSS and JS.

Demo image: Accordion

Author

  • Lewis Briffa

Made with

  • HTML
  • CSS (Ionicons.css)
  • JavaScript (jQuery.js)

About the code

Accordion

Accordion JS functionality allowing you to set the animation speed of the toggle. You also have the option of being able to have just one accordion item open at any one given time.

Demo image: ARIA Accessible Accordion

Author

  • Kiri Egington

Made with

  • HTML
  • CSS/SCSS
  • JavaScript (jQuery.js)

About the code

ARIA Accessible Accordion

A simple accordion that can be used by both mouse and keyboard-only users.

Demo image: Basic Accordion

Author

  • onepage

Made with

  • HTML
  • CSS/SCSS (Animate.css)
  • JavaScript (jQuery.js)

About the code

Basic Accordion

Basic accordion in HTML, CSS and JS.

Demo Image: Simple Accordion Concept
Demo Image: Simple Accordion Concept

Simple Accordion Concept

HTML, CSS and JavaScript simple accordion concept.
Made by Kyle Brumm
March 24, 2017

Demo Image: Funky Pure CSS Accordion
Demo Image: Funky Pure CSS Accordion

Funky Pure CSS Accordion

Another pure CSS UI Piece here using radio buttons for the active states.
Made by Jamie Coulter
March 19, 2017

Demo Image: CSS Accordion
Demo Image: CSS Accordion

CSS Accordion

A simple solution for creating a pure CSS accordion with a CSS transition on the panel height, achieved by setting “max-height” of the accordion panel instead of “height”.
Made by Matthew Scott
October 28, 2016

Demo Image: 3D Accordion
Demo Image: 3D Accordion

3D Accordion

Simple accordion with 3D folding paper effect in HTML, CSS and JavaScript.
Made by Pawe Targoski
June 13, 2016

Demo image: Material Design Accordion - Bootstrap 3

Author

  • Shehab Eltawel

Made with

  • HTML
  • CSS (Bootstrap.js)
  • JavaScript (jQuery.js, Bootstrap.js)

About the code

Material Design Accordion - Bootstrap 3

Bootstrap 3 collapse redesigned to match Material Design concept with ability to add icons on show/hide with smooth transition by adding an active class to the panel heading on show/hide.

Demo Image: Flat Accordion
Demo Image: Flat Accordion

Flat Accordion

Flat accordion in HTML, CSS and JavaScript.
Made by Soufiane Abid
April 12, 2016

Demo Image: Pure HTML And CSS Accordion
Demo Image: Pure HTML And CSS Accordion

Pure HTML And CSS Accordion

Created and designed (in browser) a pure HTML and CSS expandable accordion for fun.
Made by Chris Ota
January 21, 2016

Demo Image: CSS Responsive Animated Accordion
Demo Image: CSS Responsive Animated Accordion

CSS Responsive Animated Accordion

HTML and CSS responsive animated accordion.
Made by Chris Wright
January 19, 2016

Demo Image: Swanky Little Accordian List
Demo Image: Swanky Little Accordian List

Swanky Little Accordian List

Here’s another little CSS creation using the ‘Label for’ trick.
Made by Jamie Coulter
February 22, 2015

Demo Image: CSS + HTML Only Accordion Element
Demo Image: CSS + HTML Only Accordion Element

CSS + HTML Only Accordion Element

Read the copy in the accordion sections for some info about how this was made.
Made by Alex Bergin
April 18, 2014

Demo Image: Responsive Animated SCSS Accordion
Demo Image: Responsive Animated SCSS Accordion

Responsive Animated SCSS Accordion

Responsive animated SCSS accordion with some text-background-clipping and linear-background overlay.
Made by MrPirrera
December 11, 2014

Back to top