Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function () {
- // Back to top button
- window.onscroll = function () {
- scrollFunction()
- };
- function scrollFunction() {
- if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
- jQuery('#terugNaarBoven').css("display", "block");
- } else {
- jQuery('#terugNaarBoven').css("display", "none");
- }
- }
- jQuery('#terugNaarBoven').on('click', function () {
- jQuery('html, body').animate({
- scrollTop: jQuery('html, body').offset().top
- }, 1000, 'linear');
- });
- jQuery('body').css("background, red");
- jQuery('.intro-wrapper').on('click', function () {
- jQuery('intro-wrapper').css('margin,50px');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement