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

Any guidance for how to do sticky headers? #115

Closed
mfbx9da4 opened this issue Apr 14, 2021 · 1 comment · Fixed by #169
Closed

Any guidance for how to do sticky headers? #115

mfbx9da4 opened this issue Apr 14, 2021 · 1 comment · Fixed by #169
Labels

Comments

@mfbx9da4
Copy link

mfbx9da4 commented Apr 14, 2021

vertical-sticky-scroll
I'm looking to implement sticky headers, my naive approach was to do position: absolute; top: 0; and put an extra relative wrapper around the scrollable area. This however broke the scroll (scroll was locked).

I'm planning to resort to position: absolute; transform: translateY(${offset}px); keeping it up to date. I'm wondering if there would be a better way using position: sticky or something better yet?

@tannerlinsley
Copy link
Collaborator

🎉 This issue has been resolved in version 2.10.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants