Scroll to 1000 px from top
$(document).ready(function () {
$('html, body').animate({
scrollTop: $("body").offset().top + 1000
}, 2000);
});
Working Example
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script>
$(document).ready(function () {
$('html, body').animate({
scrollTop: $("body").offset().top + 1000
}, 2000);
});
</script>
</head>
<body>
<div id="div1" style="height: 5000px; width 100px">
Test
</div>
</body>
</html>
Most Helpful This Week
jQuery simple form validations between start date and end date
Generate random password for form field on click using JavaScript
JavaScript example to change image on click
Example to take user input and display on screen using JavaScript
JavaScript calculate Fahrenheit from Celsius
How to set checkbox and radio option checked on load with jQuery?