Controlling the Timeline with Scrolling

scrolling

(Felix) #1

I know this topic has been posted several times and I went through a lot of postings and downloaded many files but I’ve hit a little bit of a wall here. I have this file that works on Safari (thanks to @h_classen ) but not on any other browsers. Any ideas on a fix while keeping the JS simple?

Thank you and Happy Xmas and Holidays everyone! :champagne:

simplescroll.hype.zip (2.9 MB)


(Mark Hunte) #2

From what I understand Safari’s overflow is at the body level.

Other browser are at the html level.

So you need to account for both.

whatScroll = ((document.body.scrollTop || document.documentElement.scrollTop) / 100);


(Felix) #3

:scream: :exploding_head: that worked perfectly! Thank you so much @markhunte !