Advertisement
Guest User

Untitled

a guest
May 8th, 2019
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function () {
  2.  
  3.  
  4.     // Back to top button
  5.     window.onscroll = function () {
  6.         scrollFunction()
  7.     };
  8.  
  9.     function scrollFunction() {
  10.         if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
  11.             jQuery('#terugNaarBoven').css("display", "block");
  12.         } else {
  13.             jQuery('#terugNaarBoven').css("display", "none");
  14.         }
  15.     }
  16.  
  17.     jQuery('#terugNaarBoven').on('click', function () {
  18.         jQuery('html, body').animate({
  19.             scrollTop: jQuery('html, body').offset().top
  20.         }, 1000, 'linear');
  21.     });
  22.  
  23.     jQuery('body').css("background, red");
  24.  
  25.     jQuery('.intro-wrapper').on('click', function () {
  26.         jQuery('intro-wrapper').css('margin,50px');
  27.     });
  28.  
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement