Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<style>
#scroll-container {
overflow: hidden scroll;
width: 300px;
height: 100px;
}
#spacer {
height: 200px;
}
</style>
<div id="scroll-container">
<div id="spacer"><div>
</div>
<script>
const scroller = document.getElementById('scroll-container');
scroller.scrollTop = 100;
</script>