I am trying to change bootstrap jumbotron by Jquery animate function. But that is not working.I expect after click in the animate button the jumbotron size will be increase half of my screen.
<div class="content">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<div class="display-4">
<div class="display-4 heading">JQuery Practice</div>
<p class="lead">
This is Jquery Practice Session. Jquery is a javascript
library to make developers life better.
Let's make our jQuery learning fun.
</p>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="p-2">
<button type="button" class="btn btn-success" id="animate">Animate</button>
</div>
</div>
And jQuery is:
$(document).ready(function() {
$("animate").click(function() {
$("jumbotron").animate({
height:50vh
});
});
});