accordions & toggles
Accordions
HTML
markyo for an accordion item:
Open when page loads
By default the very first item will be open at page load, but it can be altered by adding .open
class to one of accordion items, that item will be oppend when the page is loaded, instead of the first item:
<div class="ac-item open">...</div>
Skins
You can choose from 6 color variations by adding these classes to the element.
.red-skin
.green-skin
.cyan-skin
.yellow-skin
.dark-skin
.blue-skin
eg.
Toggles
Toggles naturally are accordions but the behavior is slightly different. A toggle can be open or close, regardless of other siblings.
HTML
Note that the only difference is the additional .toggle-free
class.
And a sinlge toggle item would the same as accordion:
Skins
You can choose from 6 color variations by adding these classes to the element.
.red-skin
.green-skin
.cyan-skin
.yellow-skin
.dark-skin
.blue-skin
eg.
Last updated