Accordions

You can add an Accordion using the Code below:

Code Example

<div class="accordion clearfix">

	<div class="acctitle"><i class="acc-closed icon-ok-circle"></i><i class="acc-open icon-remove-circle"></i>This is Accordion Title</div>
	<div class="acc_content clearfix">This is Accordion Content</div>

	<div class="acctitle"><i class="acc-closed icon-ok-circle"></i><i class="acc-open icon-remove-circle"></i>This is Accordion Title</div>
	<div class="acc_content clearfix">This is Accordion Content</div>

	<div class="acctitle"><i class="acc-closed icon-ok-circle"></i><i class="acc-open icon-remove-circle"></i>This is Accordion Title</div>
	<div class="acc_content clearfix">This is Accordion Content</div>

</div>

How to Use

  • Styles:

    You can use 2 other styles for the Accordions. Eg. .accordion-bg or .accordion-border

    Example:

    <div class=”accordion accordion-border clearfix” data-active=”2″>
    
    	<div class=”acctitle”><i class=”acc-closed icon-ok-circle”></i><i class=”acc-open icon-remove-circle”></i>This is Accordion Title</div>
    	<div class=”acc_content clearfix”>This is Accordion Content</div>
    
    	<div class=”acctitle”><i class=”acc-closed icon-ok-circle”></i><i class=”acc-open icon-remove-circle”></i>This is Accordion Title</div>
    	<div class=”acc_content clearfix”>This is Accordion Content</div>
    
    	<div class=”acctitle”><i class=”acc-closed icon-ok-circle”></i><i class=”acc-open icon-remove-circle”></i>This is Accordion Title</div>
    	<div class=”acc_content clearfix”>This is Accordion Content</div>
    
    </div>

Settings

Setting Description
data-state

The State of the Accordions. Eg. closed to keep all the Accordions closed by default.

Option(s): open or closed

Ex: data-state="open"

data-active

The Order Number of the Accordion which you want to activate on initialization.

Ex: Use data-active="2" to activate the Second Accordion on Initialization.

Last Modified: February 7, 2020