$(document).scroll(function() {
var distanceLeft = $(document).scrollLeft();
if( distanceLeft > 3800)
{
$('#first_circle').animate({
opacity: 1
}, 1000);
}
if( distanceLeft < 3800)
{
$('#first_circle').animate({
opacity: 0
}, 1000);
}
)};
Hi
Im trying to correct this so that when the scroll goes past 3800 the div fades in and when the user scrolls back it fades out?
thank you for any input
Just change the vars and add some math: http://jsfiddle.net/z7E9u/155/