I have been using Bootstrap to design a expandable card that can be expanded when clicked. I am currently using the collapse feature, but I am facing an issue where the button remains in its original position, whereas I want it to move to the bottom of the card. The images below clearly show what I am trying to achieve.
Is there a way to move the button down when the collapse is triggered? Do I need to incorporate Javascript for this functionality?
Thank you for taking the time to read this.
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-2">
<!-- horizontal spacing -->
</div>
<div class="col-8 ">
<div class="card text">
<div class="card-header">
<div class="row">
<div class="col-3">
<div class="text-primary"> Name Nameson </div>
</div>
<div class="col-6">
<!-- horizontal spacing -->
</div>
<div class="col-3">
<div class="float-right text-secondary"> Aug 21 2019 </div>
</div>
</div>
</div>
<div class="card-body">
<h5 class="card-title">Average Rating (4.5) </h5>
<p class="card-text">Contrary to popular belief, Lorem Ipsum is not </p>
</div>
<div class="card-footer text-muted text-center">
<a href="#" class="btn" data-toggle="collapse" data-target="#review">
<div class="row">
<div> Click to see full review </div>
</div>
<span class="oi oi-caret-bottom"></span>
</a>
<div class="collapse" id="review">
Content goes here
</div>
</div>
</div>
</div>
</div>