bUTschy.de

  • code

.scrollTop

Beim runterscrollen auf dieser Seite, guck mal unten Rechts in die Ecke.

Ist leider Javascript :(

$(document).ready(function() {
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$('.gotop').fadeIn(200);
}
else { 
$('.gotop').fadeOut(200);
}
});
$('.gotop').click(function(event) {
event.preventDefault();
$('html, body').animate({scrollTop: 0}, 300);
})
});
  • 0 Kommentare
  • 4311 Klicks

▼ Kommentare


Kommentar hinzufügen