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

Home Forums JavaScript Scroll-Jacking in Full Screen JS help

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #164367
    Preface Studios Ltd


    I stumbled across this blog post by Wes Hatch on their implementation of a “scroll-jacking” / forced scrolling. The effect is shown on and the blog post is here

    I’ve tried to implement this effect, but when I do I get an error:

    Uncaught ReferenceError: scrollThreshold is not defined 

    This either occurs on line 12 or line 22 of the JS, depending on if you try and scroll up or down. I really like the effect and want to mess around with it, but I can’t figure out how to get it working. I tried adding

    var scrollThreshold = 500;

    and a few different numbers other than 500, which removed the console error but still didn’t actually fix/do anything in terms of getting the scroll to function.

    I really like the functionality of the site and I’d love to get it to work, but my javascript is quite poor and I’m pretty stuck at the moment. Any help would be great!

    Here is a codepen:

    PS: There are some replies of other people have issues on github, but no reply from hugeuser as of yet

    Preface Studios Ltd

    I did but they’ve rewritten a lot of it and I can’t figure it out. I can’t find most of the functions used in their blog post actually

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.