• Engine44

    (@engine44)


    I would like the button element “Toon Cookiekeuzes” to display only when the user scrolls to the bottom of a page. Right now it is displayed all of the time. Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • tugbucket

    (@tugbucket)

    $(document).ready(function(){
      $('#cookie-law-info-again').hide();
    });
    $(window).scroll(function() {
        if ($(document).height() <= ($(window).height() + $(window).scrollTop())) {
            $('#cookie-law-info-again').show();
        } else {
          $('#cookie-law-info-again').hide();
        }
    });

    super simple example: https://codepen.io/tugbucket/pen/gOMERWB

Viewing 1 replies (of 1 total)
  • The topic ‘Show Element Upon Reaching Bottom’ is closed to new replies.