$(document).scroll(function() {
var distanceLeft = $(document).scrollLeft();
if( distanceLeft > 7200)
{
$('#element').animate({height: 421, top: 55}, 1500);
}
Hi I am animating an element when the scroll left reaches more than 7200, how would I reverse this if it was less than 7200 back to original position please any help would be amazing thank you!