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

Offset from an edge relative to the other edge of the container #340

Open
y1n0 opened this issue Nov 23, 2020 · 1 comment
Open

Offset from an edge relative to the other edge of the container #340

y1n0 opened this issue Nov 23, 2020 · 1 comment

Comments

@y1n0
Copy link

y1n0 commented Nov 23, 2020

Hello, everyone.
How can we achieve something like <Waypoint bottomOffset="calc(100% - 50px)"} />

I wanna be able to combine that with topOffset={50} so that Waypoint will fire each time an element (passed to Waypoint as children) crosses that line from either direction

@trotzig
Copy link
Collaborator

trotzig commented Nov 24, 2020

For this type of fine-control behavior I would probably look into using IntersectionObserver.

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