Is there a way to add a fadeIn effect to the random background image loading using jQuery? Currently, the script I am using displays a random background on refresh without the desired transition effect. How can I achieve the fadeIn effect when the image loads? Please note that I do not want the images to cycle.
$(document).ready(function() {
var images = ['01.jpg', '02.jpg', '03.jpg', '04.jpg', '05.jpg', '06.jpg', '07.jpg', '08.jpg', '09.jpg', '10.jpg'];
$('.about').css({'background-image': 'url(../img/bg/' + images[Math.floor(Math.random() * images.length)] + ')'});
('.about').fadeIn(1000);
});