A simple configurable jQuery Accordion plugin.
- jQuery 3.5.1+
Include the script in the footer
<script src="./jquery.accrdion.js"></script>
// Default options
var configuration = $.extend({
openFirstByDefault: true, // [true, false]
displayStyle: 'single', // ['single', 'any']
toggleSpeed: 400, // [milliseconds, 'slow', 'fast']
scrollToActive: true, // [true, false]
scrollSpeed: 500, // [milliseconds]
}, options );