Hello,
I am trying to do create an effect for a lightbox like the blacktomato . com (I can’t add the link) website, in which the pop up opens when the user scrolls down the webpage, and it closes when the user scrolls up. Now, I looked for event readers on scrolling and I think there is none (if I am mistaken, I would really appreciate the help). So my next thought was, what if I have an anchor, and each time the anchor is in viewport, it opens the lightbox, and another anchor closes the lightbox. The issue that I have now is that the anchor that closes it is not in “viewport” once the lightbox is open. If anyone has ideas on what I could do, I would really appreciate it.