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

Parent transform: translate(0, 0) #66

Open
mupic opened this issue Oct 24, 2019 · 1 comment
Open

Parent transform: translate(0, 0) #66

mupic opened this issue Oct 24, 2019 · 1 comment
Labels

Comments

@mupic
Copy link

mupic commented Oct 24, 2019

Like any other sticky library, this one also does not work if the parent has the transform: translate (0, 0) style.
This library is one of the many that I liked, it would be very cool if the function of support for transformed elements was added in the future.

@somewebmedia
Copy link
Owner

This is impossible to implement whit libraries such as this one, because in order for the element to bi sticky relative to the viewport, it has to have position: fixed. Here is the explanation of what is happening when you put fixed element inside transformed parent: https://stackoverflow.com/questions/15194313/transform3d-not-working-with-position-fixed-children/15256339#15256339

Unfortunately there is no workaround for this.

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

No branches or pull requests

2 participants