Jquery:
var count = 3;
setInterval(function() {
if (count == 12) {
count = 3;
}
count++;
$('.desktop').css({'background-image': 'url(images/index_main_bg'+count+'.jpg)'});
}, 3000);
CSS:
.desktop {
background: url(images/index_main_bg4.jpg) center no-repeat;
background-size: cover;
z-index: 9;
transition: background 1.1s linear;
}
Basically, I just want these background images to have a smooth transition but it has a delayed flicker at seemingly random times. Any help is appreciated!
Thanks