ryanve / verge

get viewport dimensions...detect elements in the viewport...trust in <!DOCTYPE html>
https://ryanve.dev/verge
MIT License
695 stars 51 forks source link

inViewPort but above 100px from the bottom of the ViewPort #43

Open ammsa opened 7 years ago

ammsa commented 7 years ago

Is there a way to check if an element is in the viewport but has to be above the bottom 100px from the bottom edge of the viewPort? sorta like modifying the viewport height to be -100px less and checking inViewPort with the new height.

ryanve commented 7 years ago

@AmmsA you can do that with the second argument https://github.com/ryanve/verge/tree/1.10.2#inviewport