Prerequisites:
Bootstrap 4.5, Collapse initiated via JS API in default state "shown". https://jsfiddle.net/keeema/wa38qp2n/3/
<p>
<button class="btn btn-primary" type="button" >
Button with data-target
</button>
</p>
<div class="collapse" id="collapseExample">
<div class="card card-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</div>
</div>
$("#collapseExample").collapse({ toggle: true })
Actual behavior:
Bootstraps runs animation for showing Collapse when the page is opened.
Expected behavior:
Collapse content is shown immediately when the page is opened and without any animation.
Please, does anyone have any idea on how to fix this?
Thanks.