How do I get an element to fadeIn when you have scrolled X amount of pixels? Is it something along the lines of?
if ($(this).scrollTop() > 740) {
$("#myelement").fadeIn(1000);
});
Ideally it would fade in only when the scroll bar is between 740px and 1481px. Otherwise it fades out.
You need to use the scroll event: