Kapur32

1

votes
1

answer
14

views

How do I add an offset to a scroll detection function?

I'm having some trouble adding in an option offset to my JS code. I wish to be able to add an offset on when the code initiates on the screen, but can't seem to figure out where I would put the calculation. I have tried minusing the offset from window.innerHeight but it seems to cause the opposite...
Kapur32