Closed brendondev closed 1 year ago
Yes I believe it is. It should be possible if you use the option.viewOffset and set the top to 50%.
I haven't tried it myself but you can try it and let me know if it worked.
I understood, but forgot to reply. It was very easy, I just adjusted the value, here's an example: https://codepen.io/devbrendon/pen/rNdQYbx
Is it possible to make the effect happen only when the chosen div is in the middle of the screen?