You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
$(function () { |
|
$(window).scroll(function () { |
|
var scroHei = $(window).scrollTop(); |
|
if (scroHei > 500) { |
|
$('.back-to-top').css('top', '-200px'); |
|
} else { |
|
$('.back-to-top').fadeOut(); |
|
} |
|
}) |
|
$('.back-to-top').click(function () { |
|
$('body,html').animate({ |
|
scrollTop: 0 |
|
}, 600); |
|
}) |
|
}) |
|
|
|
|
|
|