0

On http://www.beargrylls.com/ its intro stops the normal scrolling on the page but uses the scroll event to do effects.

How do you:

  1. Stop the scrolling effect on the page without an overflow:hidden css rule

  2. How do you do #1 while still taking in scrolling offset values (I'm assuming this is what is being done). Thanks.

nakji
  • 81
  • 7
  • the "intro" is an image wrapped in a div - it simply scrolls until the end of the image. – Rachel Gallen Sep 14 '18 at 21:38
  • 1
    Ahh I see thanks that helps! – nakji Sep 14 '18 at 21:43
  • What would make sense is that the scroll actually goes to another element inside of the page, as if you scroll the bar manually nothing changes. The scroll bar for the second element is then hidden, and nothing scrolls because `position: fixed`, and it interprets the scroll from there. – fin444 Sep 14 '18 at 21:43

0 Answers0