mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-30 21:51:56 +01:00
15 lines
331 B
PHP
15 lines
331 B
PHP
|
<a href="#" class="scrollicon"><img src="images/scrollup.png"/></a>
|
||
|
<script>
|
||
|
$(window).scroll(function(){
|
||
|
if ($(this).scrollTop() > 80) {
|
||
|
$('.scrollicon').fadeIn();
|
||
|
} else {
|
||
|
$('.scrollicon').fadeOut();
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$('.scrollicon').click(function(){
|
||
|
$("html, body").animate({ scrollTop: 0 }, 1200);
|
||
|
return false;
|
||
|
});
|
||
|
</script>
|