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

[css-scroll-snap] A way to select the currently snapped element. #7430

Closed
jespertheend opened this issue Jun 29, 2022 · 1 comment
Closed

Comments

@jespertheend
Copy link

https://drafts.csswg.org/css-scroll-snap-1/

I would like to style the currently differently. Currently the only way to do this is using JavaScript. And any existing solutions I could find don't seem very robust:

Something like :scroll-snapped could be nice. Although maybe that is too specific to my personal use case.

I'd also like to get access to the currently snapped element via JavaScript, as I plan on performing an action on the snapped element when the user clicks a button. But I don't think this is the correct repository for that request?

@tabatkins
Copy link
Member

(Dupe of #5979)

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

No branches or pull requests

2 participants