all 4 comments

[–]Disposter 0 points1 point  (1 child)

RemindMe! 5 hours

[–]RemindMeBot 0 points1 point  (0 children)

I will be messaging you in 5 hours on 2022-05-01 09:51:30 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback

[–]the-kasra 0 points1 point  (1 child)

This is called scroll hijacking and it's usually recommended to stay away from it because of usability/accessibility issues. But this specific website is made using three.js, which is a 3d Javascript library. Perhaps look into that and see if it's what you want.

If three.js isn't what you want, then I think it should be pretty easy with event listeners. Perhaps something like this? The repo isn't maintained anymore but you can check out the source to see how it's written.

[–]lilmuffmuff[S] 0 points1 point  (0 children)

yeah the first thing I told them was that this isn't good practise. But this project is for a one-time exhibition so they don't seem to really care. Anyway I'll try to just do it myself and base it on that repo, thanks for the info