The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Animating on scroll but not actually scrolling

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #266927

    So im trying to replicate this header:
    and dont understand how they have made the header animation on scroll while preventing the page from scrolling down. I assume this is possible to do in jquery


    It’ll only work with a mouse (like on that page) – you can use the wheel event for it.

    window.addEventListener('wheel', function(e) {
      e.preventDefault(); // page will not scroll
      // animation code
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design’ is closed to new topics and replies.