I am new to jQuery and I'm using bxSlider plug-in for the first time. I am trying to create a full screen slider (the images will take the full screen) but I am having some problems since the pictures won't take the full screen and I don't know why. Can anyone help me? This is my code so far:
HTML
<div class="bxslider">
<div class="image-back" style="background-image:url(IMG/1.jpeg);">
<hr class="top-bar"></hr>
<h1 class="bounce">expert witness testimony</h1>
<h3>think of it as informed clarity</h3>
</div>
<div class="image-back" style="background-image:url(IMG/2.jpeg);">
<hr class="top-bar"></hr>
<h1>expert witness testimony</h1>
<h3>think of it as informed clarity</h3>
</div>
<div class="image-back" style="background-image:url(IMG/1.jpeg);">
<hr class="top-bar"></hr>
<h1>expert witness testimony</h1>
<h3>think of it as informed clarity</h3>
</div>
<div class="image-back" style="background-image:url(IMG/2.jpeg);">
<hr class="top-bar"></hr>
<h1>expert witness testimony</h1>
<h3>think of it as informed clarity</h3>
</div>
<div class="image-back" style="background-image:url(IMG/1.jpeg);">
<hr class="top-bar"></hr>
<h1>expert witness testimony</h1>
<h3>think of it as informed clarity</h3>
</div>
</div>
CSS
*{
padding: 0;
margin: 0;}
.image-back{
height: 100vh;
-webkit-background-size:cover;
background-size: cover;
background-position: center;
}
JavaScript
<script type="text/javascript">
$(function(){
$('.bxslider').bxSlider({
mode: 'fade',
captions: true,
slideWidth: 600
});
});</script>