<!DOCTYPE html> | |
<body style="height:10000px; overflow:hidden;"> | |
<div style="position:fixed; left:50px; top:50px; width:100px; height:100px; overflow:hidden;"> | |
<div style="position:absolute; left:0; top:0; width:100px; height:100px; background:red; will-change:opacity;"></div> | |
<div style="position:absolute; left:0; top:0; width:100px; height:100px; background:green;"></div> | |
</div> | |
<script> | |
scrollTo(0, 150); | |
</script> | |
</body> |