In this case you don't want to use animate
, you want to control the position of your element yourself based on the scroll position of the window. Something like this:
$(window).scroll(function(){
var position = Math.min($(window).scrollTop()-700, 100)
$('.contentBox').css({ left: position });
});
You can adjust the logic of position
here to affect when it moves, where it stops, etc.