I know how to fade in a div when it comes into view... My current function is doing that. The issue is that when the first div comes into view, all the divs fade in. However I want each div to fade in when each one comes into view. This is my current function:
$(window).scroll(function() {
var mywindow = $(window);
var mypos = mywindow.scrollTop();
$(".textDiv").each(function() {
var currentDiv = $(this);
if (mypos > $(currentDiv).offset()["top"] - mywindow.height()) {
$(currentDiv).fadeIn(500);
};
});
});
You might want something like THIS
Or something like THIS to keep using fadeIn