This commit is contained in:
Mridul97
2019-02-16 00:06:33 +05:30
committed by Jeffrey Warren
parent e0ed73a24e
commit f42aa2fd67
3 changed files with 2 additions and 54 deletions

View File

@@ -1,17 +0,0 @@
$(document).ready(function($){
$(function(){
$(window).scroll(function(){
if ($(this).scrollTop() > 100){
$('.move-up').fadeIn();
} else {
$('.move-up').fadeOut();
}
});
$('.move-up button').click(function(){
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
});
});