You can try to run the following code to learn how to change background image using jquery
Get Jquery Change Background Image With Animation
Background. The names of all images present in the images folder are stored in a javascript array. Getting started using jquery using jquery plugins using jquery ui developing jquery core developing jquery plugins developing jquery ui qunit and testing about the as you can see, i use this code to change the background images on click, since every page has a different background.
3d Animated Mockup In Css And Jquery Codyhouse from codyhouse.co
Simple background image parallax effect with jquery and html5. It is not possible to change the background image of a dom element with animate (misleading title, sorry about that :p), so here is a pretty nice workaround that will get you that fade in/fade out effect you always wanted when changing images. Ultimate list of jquery animation tutorials and plugin with examples and demo.this list contain jquery animation effects,jquery background animation,text animation,color animation.
As far as i know it's not possible to fade a background image directly into another one without seeing a white screen using only one element.
But the effect is fade, and that moment when background's are changing i see the white space. Using jquery to change images. Suppose we have an image url stored in a variable and then use css() method to change the value of background image. And then replace the image of body of an html page with the uploaded image.