Skip to content

Any guidance for how to do sticky headers? #115

Closed

Description

@mfbx9da4

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?

Activity

  1. tannerlinsley commented on Jan 20, 2022

    @tannerlinsley
    Member

    🎉 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions