Javascript fade or crossfade background images

Is it possible to fade in / crossfade background image?

If so, how ...

Thanks.

+4
source share
4 answers

A great way to do these effects is with jQuery.

Please take a look at:
http://api.jquery.com/fadeOut/
http://api.jquery.com/fadeIn/

Sites are a good example of how everyone does it, just apply it to background images.

Hope this helps.

+1
source

Not. The only way to complete the task is to create multiple objects or stack them with absolute positioning.

+2
source

If you are not working in a container (etc.) that has a background image, no. You might want to consider changing the “cross-fading of the background of one element” to “changing the opacity of more than one container, each of which has its own background image,” which is a more realistic approach with JS.

+1
source

I will be wary of guessing and go yes.

0
source

All Articles