As the question says I am trying to fade background images from one image to another for a few images. I would like the initial image to appear immediately on page load, and then have it fade to the next image, then to the next, and back to the first, ongoing.
I have the background image in CSS:
.banner-image {
background:transparent url('../images/8662834823_575a23516d_o.jpg') no-repeat center center;
-webkit-background-size:cover;
-moz-background-size:cover;
background-size:cover;
height:800px;
min-width: 1200px;
}
HTML:
<div class="banner-image">
//Content here
</div>
I would like the banner-image div to maintain it's height (so other div's appear below it). Which is why I want to maintain the images as CSS backgrounds.
How would I fade between images in jquery with the above requirements? Thank you for your help.