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-position][css-sticky] Provide an easing option between an elements states when using position sticky #5517

Open
Sandstedt opened this issue Sep 16, 2020 · 1 comment

Comments

@Sandstedt
Copy link

Sandstedt commented Sep 16, 2020

To make the animation of an elements default position and it's sticky position more smooth, it would be great to provide an easing option when using position: sticky.

In the current implementation it looks very static and mechanic when scrolling on a page using sticky elements. By providing and easing curve, the animation could become smooth and organic, or bouncy and fun, or just a mechaning animation using a linear easing.

Current spec: https://www.w3.org/TR/css-position-3/#stickypos-insets

(Will soon create a video comparing the current state of the spec and how it could look with easing applied)

@Sandstedt Sandstedt changed the title [css-postion][css-sticky] Provide an easing option between an elements states when using position sticky [css-position][css-sticky] Provide an easing option between an elements states when using position sticky Sep 16, 2020
@jonjohnjohnson
Copy link

jonjohnjohnson commented Sep 16, 2020

I think things like this fall less under position:sticky and more under the new houdini specs. I'd suggest checking them out, specifically the css-animation-worklet and scroll timelines. Also check out the current issues relating to scroll animation/timeline things https://github.com/w3c/csswg-drafts/issues?q=is%3Aissue+scroll+timeline. With scroll timelines we won't just have easing options for that inset position, but we'll also have transitions easing through other properties like transform/opacity/etc.

@fantasai fantasai added the css-position-3 Current Work label Nov 11, 2020
@fantasai fantasai added css-position-4 and removed css-position-3 Current Work labels Jan 6, 2023
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

3 participants