i am trying to slide background image with animate. as i want if my first background image. second will continues start
here is my code
$ ('.next').live('click',function() {
$ ('.ac_bgimage').animate({
left:"-80em"
},1500, function(){
test();
});
});
function test() {
$ ('.ac_bgimage').attr('src','images/2.jpg');
$ ('.ac_bgimage').css('left','0em');
}
as first image is working fine but it display blank screen . in this blank screen i want second upcoming screen
Thanks in advance