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

Hide when intersecting with user-specified DOM nodes #6

Open
janosh opened this issue Jan 6, 2022 · 0 comments
Open

Hide when intersecting with user-specified DOM nodes #6

janosh opened this issue Jan 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@janosh
Copy link
Owner

janosh commented Jan 6, 2022

Add a prop hideWhenIntersecting to allow passing in an array of HTML elements or a query selector whose matching DOM nodes cause sveltet-toc to be hidden temporarily for as long as there is non-zero intersection as the user scrolls passed them. Useful for things like full-width banners and images over which a heading list looks out of place.

@janosh janosh added the enhancement New feature or request label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant