Releases: awps/Accordion.JS
Releases · awps/Accordion.JS
Version 2.1.1
Version 1.3
Added support for HTML5 data attributes.
Here is the equivalent for each option:
closeAble
-->data-close-able
animation
-->data-animation
showIcon
-->data-show-icon
closeOther
-->data-close-other
slideSpeed
-->data-slide-speed
activeIndex
-->data-active-index
Version 1.2
- Added support for nested accordions.
Version 1.1
New options:
closeOther: true, //Allow multiple sections to be open(boolean)
activeIndex: false //Active section. The section index(starting from 1)(integer or false)
New files:
css/smk-accordion.less
- Less, CSS pre-processor.
js/min/smk-accordion.min.js
- plugin minified file
New features:
- Multiple sections open.
- Init multiple accordions with the same class.
- Added
activeSection
option. No need anymore for.acc_active
class. - Minimum markup. No need anymore for
.accordion_in
,.acc_head
,.acc_content
. Just make sure to keep the markup clear like this:
<div class="accordion_selector">
<!-- Section 1 -->
<div>
<div> Section 1 </div>
<div> <!--TEXT--> </div>
</div>
<!-- Section 2 -->
<div>
<div> Section 2 </div>
<div> <!--TEXT--> </div>
</div>
</div>
Pull Request: #1
Version 1.0
v1.0 First commit