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

Detect heading id and add it as data attribute to the section #2

Open
agentofuser opened this issue May 24, 2019 · 1 comment
Open

Comments

@agentofuser
Copy link
Owner

No description provided.

@nkuehn
Copy link

nkuehn commented Sep 26, 2019

Use case in mind: attaching intersection observer events to the section to easier highlight the section currently in the viewport (e.g. in an index nav) than with the hard to manage guesswork that needs to be otherwise done when just getting the viewport position of the heading itself.

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