Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ammsa opened this issue Nov 25, 2017 · 1 comment
Open

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

ammsa opened this issue Nov 25, 2017 · 1 comment

Comments

@ammsa
Copy link

ammsa commented Nov 25, 2017

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
Copy link
Owner

ryanve commented Dec 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants