Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $("#back-top").hide();
- $(function () {
- $(window).scroll(function () {
- if ($(this).scrollTop() > 1000) {
- $('#back-top').fadeIn();
- } else {
- $('#back-top').fadeOut();
- }
- });
- $('#back-top a').click(function () {
- $('body,html').animate({
- scrollTop: 0
- }, 800);
- return false;
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement