-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Parallax Scroll Snap #1608
Comments
I really like this! I'm also thinking we might not have to implement the whole Scroll Snap spec because some of the properties can be manipulated with props we already have.
scrollSnap: {
type: 'mandatory' | 'proximity',
step: 'full' | 'half' // or could be numbers I guess
}
For example, if you wanted a layer to have Admittedly, I'm not super familiar with using the Scroll Snap API, so I'm possibly (probably) overlooking use-cases for the other properties. (The main way I've seen it used is to snap to page-height sized sections -- like flipping pages in a book.) Basically, I'm picturing it as similar to the |
@kindoflew I'm not super familiar with Looks like we'll need to experiment with the feature to really know if we need |
No worries! I was mostly just thinking out loud. Basically, my initial thinking was that snapping to where a Anyways, I'm definitely going to mess around with this when I have time, so we'll find out soon enough! |
Is this feature currently working? I was just trying to apply scroll snap type with CSS, but it didn't work. It would be amazing this functionality. |
This functionality would be super useful actually. Hope someone has managed to implement this. Ready to offer a $50 bounty if anyone is interested |
Any update on this feature? It would be amazing to see this added 🙌 |
any updates on this? would really like to see this implemented 🙏 |
Any updates? That's an amazing enhancement!!! |
🚀 Feature Proposal
Just like CSS Scroll Snap, but for react-spring's
Parallax
.Because
ParallaxLayers
areposition: absolute
, CSS Scroll Snap can't work for them. Example here.I'd like to propose that we perhaps follow the CSS Scroll Snap API and implement it for react-spring's
Parallax
.Motivation
This would greatly help developer productivity. 😄
Example
The text was updated successfully, but these errors were encountered: