47 CSS Accordion

Collection of free Hand-picked 47 CSS Accordion. Vertical and Horizontal demos are included with some animations. Demos written using HTML, CSS, and JavaScript.

Vertical Accordion

Author

  • S. Shahriar

Made with

  • HTML / CSS

Created on

  • May 04,2023

Updated on

  • May 04,2023

About the Code

CSS-only Accordion with Reveal Animation

This CodePen demonstrates how we can animate the opening and closing states of an accordion with fancy reveal animation using only CSS. This concept is suitable for creating FAQ sectionsTable of Contents, and more.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes
Animation:yes

Author

  • Chris Coyier

Made with

  • HTML / SCSS / JS

Created on

  • September 12,2022

Updated on

  • September 12,2022

About the Code

Non-Transitioning Accordion Example

Useful Links:Live Demo | Download
Dependency:
Responsive:no
Animation:no

Author

  • Paweł Targoński

Made with

  • Haml / Sass / JS

Created on

  • June 08,2016

Updated on

  • June 13,2016

About the Code

3D accordion (simple folding paper effect)

Simple jQuery accordion with 3D folding paper effect.

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:no
Animation:yes

Author

  • Waseem Bepari

Made with

  • HTML / Less

Created on

  • December 16,2014

Updated on

  • December 16,2014

About the Code

CSS only Accordion (No JavaScript)

This page was written in HTML and CSS. The CSS was compiled from LESS.this could all be done in plain HTML and CSS. Using the sibling and checked selectors, we can determine the styling of sibling elements based on the checked state of the checkbox input element. The accordion can be manipulated with Javascript (if needed) by changing the “checked” property of the input element.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes
Animation:yes

Author

  • David Fitas

Made with

  • HTML / CSS / JS

Created on

  • February 18,2016

Updated on

  • February 18,2016

About the Code

Lightweight Accordion

A simple jQuery based accordion provided with some nifty expand and minimize indicators.

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:yes
Animation:yes

Author

  • Chris Ota

Made with

  • HTML / SCSS

Created on

  • January 19,2016

Updated on

  • January 20,2016

About the Code

Pure HTML and CSS Accordion

Created and designed (in the browser) a pure HTML and CSS expandable accordion for fun. I tried to think outside of the box when designing this (no pun intended).

I used a (hidden) checkbox to toggle the expanding and collapsing of each panel. I am not fully satisfied with the animations, but I will revisit that at a later time.

Caveat: Each section opens and closes independently of each other. Created for desktop only—I haven’t checked mobile.

Useful Links:Live Demo | Download
Dependency:
Responsive:no
Animation:yes

Author

  • Anz Joy

Made with

  • HTML / CSS

Created on

  • February 15,2014

Updated on

  • February 15,2014

About the Code

Pure Css Accordion Menu

Here is how to create Stylish Pure CSS Accordion Mneu without any javascript!

Useful Links:Live Demo | Download
Dependency:
Responsive:yes
Animation:yes

Author

  • Andy Lorimer

Made with

  • HTML / CSS / JS

Created on

  • October 23,2015

Updated on

  • October 24,2015

About the Code

Feature Slider

Useful Links:Live Demo | Download
Responsive:no
Animation:yes

Author

  • Jamie Coulter

Made with

  • Haml / SCSS

Created on

  • January 08,2016

Updated on

  • March 19,2017

About the Code

Funky Pure CSS Accordion

Another pure CSS UI Piece here uses radio buttons for the active states.

Useful Links:Live Demo | Download
Dependency:ionicons.css
Responsive:no
Animation:yes

Author

  • Theodore Kluge

Made with

  • HTML / CSS

Created on

  • March 07,2016

Updated on

  • February 01,2018

About the Code

CSS Accordion

A CSS-only accordion menu for /r/css challenge 1. Accordion menu with only HTML and CSS

Useful Links:Live Demo | Download
Responsive:yes
Animation:yes

Author

  • Cory

Made with

  • HTML / CSS

Created on

  • December 20,2012

Updated on

  • November 11,2014

About the Code

Hover activated accordian with default state

All CSS, hover activated accordions with a default expanded state.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes
Animation:yes

Author

  • fainder

Made with

  • HTML / CSS / JS

Created on

  • October 13,2014

Updated on

  • October 13,2014

About the Code

Smooth Accordion Dropdown Menu

Useful Links:Live Demo | Download
Responsive:yes
Animation:yes

Author

  • Katherine Kato

Made with

  • HTML / SCSS / JS

Created on

  • July 11,2017

Updated on

  • May 23,2020

About the Code

Simple FAQ Accordion

Minimal FAQ accordion made with vanilla JavaScript.

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:yes
Animation:yes

Author

  • Ryan Bobrowski

Made with

  • HTML / CSS / JS

Created on

  • August 10,2013

Updated on

  • March 07,2018

About the Code

Multi-level Accordion

Flat design accordion with as many nested levels as you need. Click on it!

Useful Links:Live Demo | Download
Dependency:
Animation:yes

Author

  • Chris Wright

Made with

  • HTML / SCSS / JS

Created on

  • November 20,2013

Updated on

  • January 19,2016

About the Code

CSS Responsive animated Accordion

Originally when I first made this I just wanted to make an animated accordion with mostly CSS and some simple javascript. I’ve since added Aria roles and fixed up that Javascript to work better.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes
Animation:yes

Author

  • Alex Bergin

Made with

  • HTML / Sass

Created on

  • April 17,2014

Updated on

  • April 18,2014

About the Code

CSS + HTML only Accordion Element

Read the copy in the accordion sections for some info about how this was made.

Useful Links:Live Demo | Download
Responsive:yes
Animation:yes

Author

  • Tony

Made with

  • HTML / CSS / JS

Created on

  • November 14,2020

Updated on

  • November 14,2020

About the Code

Animation Accordion

Useful Links:Live Demo | Download
Dependency:
Responsive:no
Animation:yes

Author

  • Tony

Made with

  • HTML / SCSS / JS

Created on

  • January 27,2021

Updated on

  • January 27,2021

About the Code

Accordion FAQ Collapse

Useful Links:Live Demo | Download
Dependency:Font Awesome
Responsive:yes

Author

  • Tony

Made with

  • Slim / Sass

Created on

  • July 28,2016

Updated on

  • July 28,2016

About the Code

Accordion Css

Useful Links:Live Demo | Download
Dependency:

Author

  • Gabriele Corti

Made with

  • HTML / CSS / JS

Created on

  • June 11,2019

Updated on

  • June 12,2019

About the Code

UI Blocky Accordion

create an accordion with details and summary elements.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes

Author

  • Elodie | DIY Web Developer

Made with

  • HTML / CSS / JS

Created on

  • November 25,2019

Updated on

  • November 25,2019

About the Code

Accordion

Useful Links:Live Demo | Download
Dependency:
Responsive:no

Author

  • Tuna

Made with

  • HTML / CSS

Created on

  • September 03,2020

Updated on

  • June 17,2022

About the Code

Accordion

Useful Links:Live Demo | Download
Dependency:
Responsive:yes

Author

  • Jeremy Hawes

Made with

  • HTML / Sass / JS

Created on

  • October 31,2014

Updated on

  • October 13,2015

About the Code

Sassy Accordion

Simple CSS only accordion built with Sass primarily for dynamic color scheming.

Useful Links:Live Demo | Download
Responsive:yes

Author

  • Scott Marshall

Made with

  • HTML / SCSS / JS

Created on

  • September 26,2014

Updated on

  • September 27,2014

About the Code

CONTENT ACCORDION

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:no

Author

  • Håvard Brynjulfsen

Made with

  • HTML / CSS

Created on

  • February 16,2021

Updated on

  • March 14,2021

About the Code

Accordion

A demonstration of what you can do with the details and summary elements.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes

Author

  • hamwithglasses

Made with

  • HTML / SCSS / JS

Created on

  • August 31,2014

Updated on

  • August 31,2014

About the Code

BEM Accordion

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:yes

Author

  • Pavel Komiagin

Made with

  • HTML / Sass / JS

Created on

  • September 20,2016

Updated on

  • September 20,2016

About the Code

Animated folding (notifications concept)

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:no

Author

  • Soufiane Abid

Made with

  • HTML / SCSS / JS

Created on

  • April 10,2016

Updated on

  • April 12,2016

About the Code

flat accordion

Useful Links:Live Demo | Download
Dependency:jquery.js

Author

  • Arden

Made with

  • Pug / SCSS / JS

Created on

  • December 09,2015

Updated on

  • December 10,2015

About the Code

Smooth Accordion using Greensock

Accordion that animates from height: 0 to height: auto with the help of Greensock’s TweenLite.

Useful Links:Live Demo | Download
Dependency:TweenMax.js
Responsive:yes

Author

  • Isac Fadoni

Made with

  • HTML / Sass / JS

Created on

  • September 27,2015

Updated on

  • September 20,2017

About the Code

Unfolding Cards

An update of Unfolding Post.

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:no

Author

  • Chris Mounsey

Made with

  • HTML / Less

Created on

  • July 31,2012

Updated on

  • May 25,2017

About the Code

Process Accordion

I was looking for some way to illustrate a customer journey in a more interesting way. I decided to do it as an accordion—and from there is seemed natural to do it in CSS and HTML only.

Once again, I am using radio buttons to trigger the changes; the numbers are using CSS counters (which I have never used before); there are a couple of small transitions on the open effect.

The only annoyance is that the accordion item heights must be defined for the transition to work: you can set height: auto; instead, but the transition is instant.

Useful Links:Live Demo | Download
Dependency:
Responsive:no

Author

  • Suryakant sao

Made with

  • HTML / CSS

Created on

  • October 31,2013

Updated on

  • October 31,2013

About the Code

Accordin using css3

Useful Links:Live Demo | Download
Dependency:
Responsive:no

Author

  • Frederick Allen

Made with

  • HTML / CSS

Created on

  • July 02,2019

Updated on

  • September 26,2019

About the Code

HTML Only Accordion

Exploring styling the HTML Details and Summary tags to create functional accordion without any javascript.

Useful Links:Live Demo | Download
Dependency:
Responsive:yes

Author

  • Hugo

Made with

  • HTML / CSS / JS

Created on

  • June 25,2020

Updated on

  • June 25,2020

About the Code

Smooth Accordion using Alpine.js (w/ x-for) + Tailwind CSS

Useful Links:Live Demo | Download

Author

  • Ahmet Aksungur

Made with

  • HTML / CSS / JS

Created on

  • August 17,2020

Updated on

  • August 17,2020

About the Code

SSS Accordion and Google Schema

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:yes

Author

  • Mindgames

Made with

  • HTML / SCSS / JS

Created on

  • April 28,2017

Updated on

  • July 30,2017

About the Code

Accordion like Apple.com

Decided to do an accordion-like can be seen on Apple.com product pages and use Bootstrap 4 as my foundation.

Useful Links:Live Demo | Download
Responsive:yes

Author

  • Joe

Made with

  • HTML / CSS / JS

Created on

  • March 06,2015

Updated on

  • March 20,2015

About the Code

BEM Accordion

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:yes
Compatible Browsers:Chrome, Firefox, Opera, Safari, IE

Author

  • Prasad D.

Made with

  • HTML / SCSS

Created on

  • May 16,2019

Updated on

  • July 04,2019

About the Code

No JavaScript, Simple Accordion

Useful Links:Live Demo | Download
Responsive:yes
Animation:no
Compatible Browsers:Chrome, Firefox, Opera, Safari, IE

Author

  • Akshay Nair

Made with

  • HTML / SCSS

Created on

  • August 26,2015

Updated on

  • August 26,2015

About the Code

Simple Content Reveal

Useful Links:Live Demo | Download
Dependency:
Responsive:yes
Animation:no

Horizontal Accordion

Author

  • Fabio Ottaviani

Made with

  • HTML / SCSS / JS

Created on

  • November 28,2022

Updated on

  • November 30,2022

About the Code

Elastic Accordion GSAP

Useful Links:Live Demo | Download
Dependency:gsap.js
Responsive:yes
Animation:yes

Author

  • Stefan C.

Made with

  • HTML / SCSS

Created on

  • January 11,2018

Updated on

  • March 22,2019

About the Code

Accordion Image Gallery

Useful Links:Live Demo | Download
Dependency:

Author

  • Amit Sheen

Made with

  • HTML / SCSS

Created on

  • March 27,2023

Updated on

  • March 27,2023

About the Code

Dual Picture Accordion Fold (css only)

Useful Links:Live Demo | Download
Dependency:
Responsive:no
Animation:yes

Author

  • Oleksiy Ostapenko

Made with

  • HTML / SCSS

Created on

  • July 21,2015

Updated on

  • February 21,2016

About the Code

CSS only horizontal accordion

vanilla CSS horizontal accordion and toggle with flexbox usage may be used on the staff, team, or showcase page.

Useful Links:Live Demo | Download
Responsive:no
Animation:yes

Author

  • J Harvey

Made with

  • HTML / CSS

Created on

  • September 19,2018

Updated on

  • September 19,2018

About the Code

CSS Horizontal Accordion

Useful Links:Live Demo | Download
Dependency:
Responsive:no
Animation:yes

Author

  • valaxin

Made with

  • HTML / SCSS / JS

Created on

  • May 01,2016

Updated on

  • May 01,2016

About the Code

CSS Accordion

Useful Links:Live Demo | Download
Dependency:jquery.js
Responsive:yes
Animation:yes

Author

  • Envato Tuts+

Made with

  • HTML / CSS

Created on

  • November 07,2019

Updated on

  • November 07,2019

About the Code

How to Build an Accordion Component With the CSS Checkbox Hack

In this short tutorial, we’ll learn how to build a CSS-only flexible accordion component by taking advantage of the “CSS checkbox hack technique”. Most importantly, our component will be fully responsive and its layout will switch between horizontal and vertical depending on the viewport size.

Along the way, we’ll discuss how the CSS Checkbox Hack works, and look at some other Checkbox Hack inspiration from developers on CodePen. Sound interesting?

Useful Links:Live Demo | Download
Dependency:
Responsive:yes

Author

  • Danilo Giordano

Made with

  • HTML / CSS

Created on

  • February 23,2015

Updated on

  • February 23,2015

About the Code

Radio Inputs & Accordions

Experimenting with radio inputs and accordions. Not very semantic.

Useful Links:Live Demo | Download
Dependency: