I am working on an Html website and I have popup code but it shows the top of the page but I want to show this in the center of the page with fade in and fadeout effect please help me how can I do this. Thanks
<script>function openModal(){
$("#exampleModalLong").modal();
setTimeout(function(){ $("#exampleModalLong").modal("hide"); }, 3000);
}</script>
<div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<center> <h1 class="modal-title" id="exampleModalLongTitle">The Janwari Group Of Companies</h1></center>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center><h4>Description</h4></center>
</div>
</div>
</div>
</div>