Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE HTML>
<html>
<body>
<div class="scrollTop" style="height:100px; overflow:hidden;">
<div style="margin-top:30px;">Hello Kitty</div>
<div style="height:400px;"></div>
</div>
<script src="scrolling.js"></script>
</body>
</html>