Commit 83e529a7 by doszhang

dos

parent 5353598b
...@@ -157,17 +157,17 @@ function pageOnScroll(event) { ...@@ -157,17 +157,17 @@ function pageOnScroll(event) {
setTimeout(() => { setTimeout(() => {
const top = $('.wrap').scrollTop(); const top = $('.wrap').scrollTop();
console.log(top); console.log(top);
if (top > 600 && top < 2800) { if (top > 600 && top < 3557) {
$('.block2').show().addClass('animate'); $('.block2').show().addClass('animate');
} else if (top > 2800 && top < 4100) { } else if (top > 3557 && top < 4778) {
$('.block3').show().addClass('animate'); $('.block3').show().addClass('animate');
} else if (top > 4100 && top < 4700) { } else if (top > 4778 && top < 5536) {
$('.block4').show().addClass('animate'); $('.block4').show().addClass('animate');
} else if (top > 4700 && top < 5400) { } else if (top > 5536 && top < 6177) {
$('.block5').show().addClass('animate'); $('.block5').show().addClass('animate');
} else if (top > 5400 && top < 6000) { } else if (top > 6177 && top < 6780) {
$('.block6').show().addClass('animate'); $('.block6').show().addClass('animate');
} else if (top > 6000) { } else if (top > 6780) {
$('.block7').show().addClass('animate'); $('.block7').show().addClass('animate');
} }
}, 5) }, 5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment