Hey everyone, I could really use your assistance! I'm working on developing a javascript code and here is the idea - if anyone can contribute to it.
It's like a social media platform where users enter the site and the is_user_logged_in
parameter is loaded - it's a function that checks if a user is logged in (don't worry about this).
I want to create a code where when non-registered users visit the site, they can scroll down to view items on the page. However, as they scroll, at 700px a big white box appears from beneath covering one third of the screen, then at around 1400px, it covers half of the screen, and finally at 2000px it covers the entire screen.
Please disregard the user login concept, I just used that for illustrative purposes. Can anyone assist me with creating this using Javascript?