I am looking a help to move my container bg to move according to the 'scrollTop' for this, i wrote this function, but not work. any one help me. i decided to move my backgronud image with smooth way as well.
$(window).scroll(function(){
var moveSize = $(window).scrollTop();
$('#container.takeover1').animate({
backgroundPosition: "0px "+ parseInt(-moveSize)+'px',
easing: 'swing'
}, 3000 );
});
any one help me? thanks in advance.