"slideToggle"
Bootstrap 4.1.1 Snippet by ranjit1602

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div id="div1">Div 1</div><br> <div><a href="#" id="btn">Click</a></div> </div> </div>
#div1 { width:100px; height:100px; background-color:#F30; color:#FFF; text-align:center; font-size:30px; }
$('#btn').click(function() { $('#div1').slideToggle('slow', function() { }); });

Related: See More


Questions / Comments: