Schalttaste scrollen nach Element -ID glatten
html {
scroll-behavior: smooth;
}
Successful Snake
html {
scroll-behavior: smooth;
}
$('#myButton').click(function() {
$.scrollTo($('#myDiv'), 1000);
});
$('#myButton').click(function(event) {
event.preventDefault();
$.scrollTo($('#myDiv'), 1000);
});