JQuery Accordion / Content Toggle Plugin | Ziehharmonika

ziehharmonika is a lightweight but customizable jQuery plugin that helps you create elegant and responsive accordion/content toggle interfaces with ease.

multi level accordion jquery, jquery accordion expand all, jquery collapse toggle, best jquery accordion, nested accordion jquery, jquery all plugin, accordion openclose jquery

How to make use of it:

1. Include the model sheet ziehharmonika.css within the header that can present the first CSS styles for the plugin.

<link href="ziehharmonika.css" rel="stylesheet">

2. Create headers and collapsible contents for the accordion.

<div class="ziehharmonika">
  <h3>Section Content 1</h3>
  <div>
    <p>More Content 1</p>
  </div>
  <h3>Section Content 2</h3>
  <div>
    <p>More Content 2</p>
  </div>
  <h3>Section Content 3</h3>
  <div>
    <p>More Content 3</p>
  </div>
</div>

3. Include the jQuery library and the JavaScript file ziehharmonika.js on the bottom of the webpage.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="ziehharmonika.js"></script>

4. Initialize the accordion plugin and executed it.

$('.ziehharmonika').ziehharmonika();

5. Default plugin settings.

$('.ziehharmonika').ziehharmonika({

  // To use a headline tag other than h3, adjust or overwrite ziehharmonika.css as well
  headline: 'h3',

  // Give headlines a certain prefix, e.g. "♫ My headline"
  prefix: false,

  // Only 1 accordion can be open at any given time
  highlander: true,

  // Allow or disallow last open accordion to be closed
  collapsible: false,

  // Arrow down under headline
  arrow: true,

  // Opened/closed icon on the right hand side of the headline (either false or JSON containing symbols or image paths)
  collapseIcons: {
    opened: '&ndash;',
    closed: '+'
  },

  // alignment of collapse icon
  // 'left' or 'right'
  collapseIconsAlign: 'right',

  // Scroll to opened accordion element
  scroll: true
  
});

Stylish jQuery Accordion / Content Toggle Plugin, Ziehharmonika Github


See Demo And Download

Official Website(Arcfool): Click Here

This superior jQuery/javascript plugin is developed by Arcfool. For extra Advanced Usages, please go to the official website.

Related Posts

drag-drop-file-5x5-jq-uploader

Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…

Bootstrap-Dark-Mode

Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…

responsive-navigation-menu

Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…

Simple-Multi-Select-Dropdown-Pure-Vanilla-Javascript

Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

how-to-create-popup-in-html-with-css

How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…