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

[Feature Request] Element on Stick Action #111

Open
SharifClick opened this issue Oct 10, 2023 · 2 comments
Open

[Feature Request] Element on Stick Action #111

SharifClick opened this issue Oct 10, 2023 · 2 comments

Comments

@SharifClick
Copy link

I propose the addition of a new feature to this project that I'll refer to as "Element on Stick Action." This feature would enhance the ability to manage elements as they become sticky during scrolling.

I believe that implementing the "Element on Stick Action" feature would be a valuable addition to the project, and I'm open to contributing or collaborating on its implementation.

Thank you!

@bobbymannino
Copy link
Contributor

This is a great idea, they're actually bringing it into vanilla css at some point as we speak. The problem with doing it in js is the use of intersection observer. It's another thing to compute. The main issue with doing this (for my self anyway) is that what if the element is in two containers each with top padding. That is something I wouldn't know how to implement, but I’d be up for the challenge

@ankurrsinghal
Copy link
Owner

Sure @SharifClick for the idea. Can you share more details regarding this like any other library or website you this in action? Also please feel free to contribute to this library by raising a PR, I will be happy to merge it.

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

3 participants