-
Notifications
You must be signed in to change notification settings - Fork 158
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: rootMargin currently only supports number and not percentage values #157
Comments
Ya, I'll have to think about this some more because I'm not sure Maybe a new configuration option should be created. Something like In the meantime you may want to just use a |
@jscottsmith thanks for your explanation. I am currently unsure if this package actually is the right one to have this timeline effect as shown in for example in this demo: |
I see. Ya you may be able to achieve that but it could be a little tricky. I tried mocking something up using https://codesandbox.io/s/react-scroll-parallax-view-progress-0h7r00?file=/src/App.tsx But you may be better off with just another package ;) |
Thanks for the demo :-) |
I would love to trigger the scroll animation when the middle of a screen is passed (animated timeline with connector). This currently seems not be able because rootMargin is bind to top, left, bottom, right and all values seems to be number (pixel) only.
Do you have a solution to start the scroll animation in the middle of the viewport?
The text was updated successfully, but these errors were encountered: