Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$(document).ready(function() {
$('.to-home').click(function(){
var poz = $('#element').offset();
$('html, body').animate({scrollTop:poz.top+'px'}, 'fast');
return false;
});
});
$('html, body').
Така се ползва плъгина scrollTo, който ще е най-полезен на автора на тематаshterev каза:$('html, body').
Това не ти ли е елемента до който да скролва?