Skip to content

Commit 87ebc4f

Browse files
author
jmbb
committed
Show button when landed on page with anchor
1 parent 5e22063 commit 87ebc4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/scroll-top.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ $(function(){
1616
} else if (pos < scrollerTriggerPoint && btnScroller.is(':visible')) {
1717
btnScroller.fadeOut();
1818
}
19-
});
19+
}).scroll();
2020

2121
btnScroller.on('click', function(e) {
2222
e.preventDefault();
2323
$('html, body').animate({ scrollTop: 0 }, 300);
2424
});
2525

26-
});
26+
});

0 commit comments

Comments
 (0)