jQuery accordion examples and plugins

Welcome to our collection of jQuery code examples! In this carefully curated compilation, we have gathered a wide array of code snippets that demonstrate the power and versatility of the jQuery library.

jQuery Accordion with Arrow (No Bootstrap)

Author:
Niko | November 25, 2020
Made with:
HTML / CSS / JS

About a code

Simple but useful.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

Dropdown/Accordion

Author:
Marlon | September 22, 2020
Made with:
HTML / CSS / JS

About a code

Animated accordion in jQuery.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

Custom Accordion for Right

Author:
John Hubler | September 12, 2020
Made with:
HTML / CSS / JS

About a code

jQuery custom accordion with Material Design Iconic font.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
material-design-iconic-font.css

jQuery Accordion

Author:
Jacob Collins | August 21, 2020
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Accordion Scroll Top

Author:
Radoslav | August 17, 2020
Made with:
HTML / CSS / JS

About a code

Accordion with scroll animation in jQuery.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
ionicons.css

Accordion and Google Schema

Author:
Ahmet Aksungur | August 17, 2020
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

jQuery Accordion Styles

Author:
Edu Lazaro | June 25, 2020
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Simple Sliding Accordion

Author:
rajeshdn | September 9, 2019
Made with:
HTML / CSS / JS

About a code

Simple vertical sliding accordion with little jQuery.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Accordion Slider

Author:
Yusuke Saio | September 13, 2019
Made with:
HTML / CSS (SCSS) / JS

About a code

Simple horizontal jQuery accordion slider.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Image Accordions

Author:
januaryofmine | March 24, 2019
Made with:
HTML / CSS (SCSS) / JS

About a code

Image accordions demo with swiper.js

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
swiper.css, swiper.js

Accordion With Close Button

Author:
Andrej Sharapov | March 17, 2019
Made with:
HTML (Pug) / CSS (Sass) / JS

About a code

This is a simple example of how you can create an accordion from a regular HTML tag and a pair of jQuery lines. We often resort to using complex patterns and writing long code when creating sliders and accordions, completely forgetting that there are very simple ways to solve these problems. Here you do not need to be well versed in the code to stylize it and add animation.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Simple Responsive jQuery Accordion

Author:
Shaun MacDougall | January 15, 2019
Made with:
HTML / CSS (SCSS) / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

Responsive jQuery Accordion

Author:
Gabriela Johnson | November 6, 2018
Made with:
HTML / CSS / JS

About a code

A responsive jQuery accordion that allows the user to navigate from form to form by clicking on tabs, using the arrow keys and clicking on the provided arrow buttons. Created using jQuery and Bootstrap.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css, bootstrap.css

Accordion with dt & dd tags.

Author:
Halida Astatin | June 4, 2018
Made with:
HTML / CSS / JS

About a code

jQuery accordion using definition lists.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

CSS-JS Multi-Level Accordion

Author:
Gab Shirohige | April 1, 2018
Made with:
HTML / CSS (SCSS) / JS

About a code

A multi-level CSS and JS (jQuery) accordion. This has the feature to pre-open a list group on initial page load, by simply adding the is-open class to the list item that has has-children class. HTML and CSS are written using the BEM syntax.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

CSS Animation for jQuery Accordion

Author:
Sergio | March 7, 2018
Made with:
HTML / CSS / JS

About a code

Accordion for meteo application in jQuery with CSS animation.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.js

Accordion

Author:
duke | February 13, 2017
Made with:
HTML / CSS / JS

About a code

jQuery accordion menu.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

jQuery Accordion Navigation Menu

Author:
James Thomas Almond | February 9, 2017
Made with:
HTML / CSS (SCSS) / JS

About a code

A reusable jQuery accordion navigation menu, works with any amount of categories and subcategories.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Accordion Menu

Author:
Anya Melnyk | December 14, 2016
Made with:
HTML / CSS / JS

About a code

Hamburger slide accordion menu with jQuery.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
jquery.js

4 Lines jQuery Accordion

Author:
Johan Mouchet | August 19, 2016
Made with:
HTML / CSS (SCSS) / JS

About a code

Simple jQuery accordion.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

3D Accordion

Author:
Paweł Targoński | June 8, 2016
Made with:
HTML (Haml) / CSS (Sass) / JS

About a code

Simple jQuery accordion with 3D folding paper effect.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Accordion Profile

Author:
Mohan Khadka | August 15, 2015
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

jQuery Accordion

Author:
Vikas Verma | December 8, 2014
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css

Sassy Accordion

Author:
Jeremy Hawes | October 31, 2014
Made with:
HTML / CSS (Sass) / JS

About a code

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

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css, bootstrap.js, lastoftype.js

Accordion Multi Menu

Author:
Alex | October 2, 2013
Made with:
HTML (Haml) / CSS (Less) / JS

About a code

Simple, stylish and modern vertical accordion menu.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
font-awesome.css

jQuery (UI-Less) Accordion

Author:
Derek Palladino | September 6, 2013
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Simple Sass/jQuery Accordion

Author:
Jon Stuebe | April 10, 2013
Made with:
HTML / CSS (SCSS) / JS

About a code

CSS3/Sass/jQuery accordion that has some simple animations with arrows all done in CSS (sliding and click states done with jQuery).

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Accordion with jQuery

Author:
Mohamed Karim | June 14, 2022
Made with:
HTML / CSS / JS

About a code

Simple accordion with jQuery.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Arai Accordion

Author:
Davide Trisolini | April 17, 2017
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Ziehharmonika

Author:
Thitithan Atthakasem | March 1, 2017
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Simple Jquery Multi Accordion

Author:
Haris Hasan Khan | April 20, 2017
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
bootstrap.css

jQuery Accessible Accordion System

Author:
Nicolas Hoffmann | October 24, 2016
Made with:
JS

About a code

This jQuery plugin will transform a simple list of hx and div’s into a fantastic-shiny accordion system, using ARIA.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

jQuery Accordion

Author:
Victor Fernandez | October 18, 2014
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨