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

Sticky parallax #619

Closed
mogmog opened this issue Apr 3, 2019 · 4 comments · Fixed by #1482
Closed

Sticky parallax #619

mogmog opened this issue Apr 3, 2019 · 4 comments · Fixed by #1482
Labels
kind: request New feature or request that should be actioned
Milestone

Comments

@mogmog
Copy link

mogmog commented Apr 3, 2019

Many parallax libraries have the ability to mark an element as 'sticky' such that as you scroll, certain elements are not scrolled until a certain threshold is reached, eg:

https://stickyroll.github.io/react-stickyroll/

My question is, does react-spring's parallax provide such a feature, or is there a property i can inspect to simulate this effect?

@fullspectrumprocessing
Copy link

Definitely interested in this feature also!!

@nickmcmillan
Copy link

I needed this for a project so decided to try writing it myself. The effect can be accomplished by using React Springs primitives and position: sticky.

I've loaded it with comments. Hopefully some of you find this useful and also spot some areas for improvement.

https://codesandbox.io/s/scroll-animation-with-react-spring-pndnu

@aleclarson aleclarson added kind: request New feature or request that should be actioned and removed question labels May 9, 2020
@joshuaellis

This comment has been minimized.

@joshuaellis joshuaellis reopened this Apr 28, 2021
@joshuaellis joshuaellis added this to the v9.X.X milestone Apr 28, 2021
@joshuaellis joshuaellis linked a pull request May 2, 2021 that will close this issue
3 tasks
@joshuaellis joshuaellis modified the milestones: v9.X.X, v9.2.0 May 13, 2021
@joshuaellis
Copy link
Member

Big thanks to the fantastic @kindoflew this has been released in the latest 9.2.0 beta (6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: request New feature or request that should be actioned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants