How to automatically scroll the page gently to 400 pixels below the top when loading the page with jQuery with scrollTop (); ?
<script>
$(document).ready(function(){
// ROLAR A PAGINA
});
</script>
How to automatically scroll the page gently to 400 pixels below the top when loading the page with jQuery with scrollTop (); ?
<script>
$(document).ready(function(){
// ROLAR A PAGINA
});
</script>
I solved it like this:
<script>
$(document).ready(function(){
$('html, body').animate({
scrollTop: 320
}, 1600);
});
</script>
When you load the page, it automatically rolls 320 pixels down smoothly at 1600ms.