Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $(window).scroll(function() {
- if($(this).scrollTop() > $(this).height()) {
- $('.top').addClass('active');
- } else {
- $('.top').removeClass('active');
- }
- });
- $(window).click(function() {
- $('html, body').stop().animate({scrollTop: 0},/*800*/ 'slow');
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement