src/sass/components/_variables.scss
and adds additonal options in
src/sass/components/_accordion.scss
..accordion-body
, though the transition does limit overflow..accordion-body
, though the transition does limit overflow..accordion-body
, though the transition does limit overflow.
<!--begin::Accordion-->
<div class="accordion" id="kt_accordion_1">
<div class="accordion-item">
<h2 class="accordion-header" id="kt_accordion_1_header_1">
<button class="accordion-button fs-4 fw-semibold" type="button" data-bs-toggle="collapse" data-bs-target="#kt_accordion_1_body_1" aria-expanded="true" aria-controls="kt_accordion_1_body_1">
Accordion Item #1
</button>
</h2>
<div id="kt_accordion_1_body_1" class="accordion-collapse collapse show" aria-labelledby="kt_accordion_1_header_1" data-bs-parent="#kt_accordion_1">
<div class="accordion-body">
...
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="kt_accordion_1_header_2">
<button class="accordion-button fs-4 fw-semibold collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#kt_accordion_1_body_2" aria-expanded="false" aria-controls="kt_accordion_1_body_2">
Accordion Item #2
</button>
</h2>
<div id="kt_accordion_1_body_2" class="accordion-collapse collapse" aria-labelledby="kt_accordion_1_header_2" data-bs-parent="#kt_accordion_1">
<div class="accordion-body">
...
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="kt_accordion_1_header_3">
<button class="accordion-button fs-4 fw-semibold collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#kt_accordion_1_body_3" aria-expanded="false" aria-controls="kt_accordion_1_body_3">
Accordion Item #3
</button>
</h2>
<div id="kt_accordion_1_body_3" class="accordion-collapse collapse" aria-labelledby="kt_accordion_1_header_3" data-bs-parent="#kt_accordion_1">
<div class="accordion-body">
...
</div>
</div>
</div>
</div>
<!--end::Accordion-->
.accordion-icon-toggle
class to add toggle based animated icon in header:
<!--begin::Accordion-->
<div class="accordion accordion-icon-toggle" id="kt_accordion_2">
<!--begin::Item-->
<div class="mb-5">
<!--begin::Header-->
<div class="accordion-header py-3 d-flex" data-bs-toggle="collapse" data-bs-target="#kt_accordion_2_item_1">
<span class="accordion-icon"><span class="svg-icon svg-icon-4"><svg>...</svg></span></span>
<h3 class="fs-4 fw-semibold mb-0 ms-4">The best way to quick start business</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div id="kt_accordion_2_item_1" class="fs-6 collapse show ps-10" data-bs-parent="#kt_accordion_2">
...
</div>
<!--end::Body-->
</div>
<!--end::Item-->
<!--begin::Item-->
<div class="mb-5">
<!--begin::Header-->
<div class="accordion-header py-3 d-flex collapsed" data-bs-toggle="collapse" data-bs-target="#kt_accordion_2_item_2">
<span class="accordion-icon"><span class="svg-icon svg-icon-4"><svg>...</svg></span></span>
<h3 class="fs-4 fw-semibold mb-0 ms-4">How To Create Channel ?</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div id="kt_accordion_2_item_2" class="collapse fs-6 ps-10" data-bs-parent="#kt_accordion_2">
...
</div>
<!--end::Body-->
</div>
<!--end::Item-->
<!--begin::Item-->
<div class="mb-5">
<!--begin::Header-->
<div class="accordion-header py-3 d-flex collapsed" data-bs-toggle="collapse" data-bs-target="#kt_accordion_2_item_3">
<span class="accordion-icon"><span class="svg-icon svg-icon-4"><svg>...</svg></span></span>
<h3 class="fs-4 fw-semibold mb-0 ms-4">What are the support terms & conditions ?</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div id="kt_accordion_2_item_3" class="collapse fs-6 ps-10" data-bs-parent="#kt_accordion_2">
...
</div>
<!--end::Body-->
</div>
<!--end::Item-->
</div>
<!--end::Accordion-->