jQuery background image transition
Posted
by Hock
on Stack Overflow
See other posts from Stack Overflow
or by Hock
Published on 2010-05-23T17:15:54Z
Indexed on
2010/05/23
17:20 UTC
Read the original article
Hit count: 373
I have a div that has a 'home.jpg' image as background and I want the background to be 'another_image.jpg' when I click something. The thing is that I want the new background to fadeIn and not just to appear (by doing some .css('background', url('another_image.jpg')); )
Is there a way to do that? I've tried the bgImageTransition plugin but it just adds another element on top of the div I had...
Thanks,
© Stack Overflow or respective owner