<script type="text/javascript">
$(document).ready(function() {
$("#slide01").css("display", "none");
$("#slide01").fadeIn(2000);
});
</script>
$("#slide01").css("display", "none");
$(window).scroll(function(){
if ($("body").scrollTop() > 0) { //if the page is scrolled
$("#slide01").fadeIn(2000); //print block
} else {//otherwise
$("#slide01").fadeOut(2000); //hide block
}
});
Find more questions by tags CSSjQueryHTMLProgrammingJavaScript
Calculate the indentation from the top for each block (for each
) and check. If achieved a certain height of the scrolling page (
$("body").scrollTop() > ...
), then turn on the corresponding block.