Unique and stylish collection of 22+ HTML and CSS horizontal accordion code examples. Each item is free and carefully hand-picked from GitHub and CodePen.

1. Accordion Slider With Caption


Author: pooriya
Source:  Code / Demo
Created on: MARCH 30, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

2. Budging Bars | CSS-only Line Bar Navigation Tutorial | @keyframers 2.15.0


Author: @keyframers
Source:  Code / Demo
Created on: AUGUST 22, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

3. Pure CSS Accordion


Author: Eduardo Moreno
Source:  Code / Demo
Created on: NOVEMBER 22, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

4. Horizontal Accordions (on hover expend)


Author: Immad Hamid
Source:  Code / Demo
Created on: MARCH 28, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

5. accordion gallery zoom animation (css, responsive)


Author: beeblebrox
Source:  Code / Demo
Created on: JANUARY 23, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

6.  CSS3-only Horizontal Accordion


Author: Ryan Arnell
Source:  Code / Demo
Created on: APRIL 10, 2014
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

7. Responsive Horizontal Accordion


Author: cent
Source:  Code / Demo
Created on: AUGUST 20, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

8. Bare Necessity Horizontal Accordion


Author: Jay
Source:  Code / Demo
Created on: JULY 17, 2014
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

9. Responsive Accordion Slider


Author: Gregory Nickoloff
Source:  Code / Demo
Created on: APRIL 20, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

10. image hover effect — week 10/52


Author: Mert Cukuren
Source:  Code / Demo
Created on: MARCH 8, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

11. Accordion Image Gallery


Author: Stefan C.
Source:  Code / Demo
Created on: JANUARY 12, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

12. Flex Hover Slider | HTML + CSS + jQuery


Author: Cameron Fitzwilliam
Source:  Code / Demo
Created on: APRIL 20, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

13. Full Page Horizontal Accordion


Author: Miles Manners
Source:  Code / Demo
Created on: JULY 20, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS)

14. Accordian slider


Author: Prakash Prajapati
Source:  Code / Demo
Created on: AUGUST 16, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

15.  Flex Horizontal Accordion


Author: Matt Bagni
Source:  Code / Demo
Created on: OCTOBER 27, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS) JavaScript

16. Pure CSS Horizontal Accordion


Author: Aysha Anggraini
Source:  Code / Demo
Created on: JANUARY 29, 2014
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

17. CSS3 accordion slider with Transitions and Flexbox


Author: foxeisen
Source:  Code / Demo
Created on: NOVEMBER 18, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

18. Horizontal accordion with hover


Author: Takahiro Nakatsu
Source:  Code / Demo
Created on: MARCH 3, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

19. Social Accordion Slider


Author: Brad Traversy
Source:  Code / Demo
Created on: MARCH 21, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

20. Accordion Slider


Author: Ashton
Source:  Code / Demo
Created on: JULY 27, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

21. Responsive Accordion Slider


Author: Doniyor11
Source:  Code / Demo
Created on: AUGUST 30, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

22. Pure CSS accordion


Author: Ivan Bogachev
Source:  Code / Demo
Created on: JUNE 6, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(Less)

23. horizontal accordion with masking


Author:  Mike
Source:  Code / Demo
Created on: OCTOBER 16, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS