"Collapse Dropdown animation Bootstrap V4"
Bootstrap 4.0.0 Snippet by kodakro

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <br> <div id="accordion" role="tablist"> <div class="card entity-card border-top-0"> <div class="card-header entity-header" role="tab"> <h5 class="mb-0"> <a class ="entity-title" data-toggle="collapse" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> Collapsible Group Item #1 </a> </h5> </div> <div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordion"> <div class="card-body"> ...............................................................................#1 </div> </div> </div> </div> <br> <div id="accordion" role="tablist"> <div class="card"> <div class="card-header entity-header" role="tab"> <h5 class="mb-0"> <a class="collapsed entity-title" data-toggle="collapse" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> Collapsible Group Item #2 </a> </h5> </div> <div id="collapseTwo" class="collapse" role="tabpanel" aria-labelledby="headingTwo" data-parent="#accordion"> <div class="card-body"> ...............................................................................#2 </div> </div> </div> </div> </div>
[data-toggle="collapse"]:after { display: inline-block; display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\0268A"; /*transform: rotate(90deg) ;*/ transition: all linear 0.25s; float: right; } [data-toggle="collapse"].collapsed:after { /*transform: rotate(0deg) ;*/ content:"\0271A"; } a.entity-title, a.entity-title:hover { color:black; text-decoration:none; } .entity-header{ background:none; } .entity-card{ }

Related: See More


Questions / Comments: