You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
So I have had the setup for transition plugin and a fixed header working fine and dandy where you set the config to resolve the layout and don't include the "<Layout>" around individual pages files.
Now I am looking to use react spring parallax components ( Parallax and ParallaxLayer) in the pages/index BUT what I have observed is the dom elements get laid in from react spring but it is invisible, height zero I think mostly, and nothing happens on scroll but if i copy that parallax code into the layout file it kinda works with extra scroll bars though which maybe just tweaking needed where the whole page needs to be in the Parallax component.
So my question is can I some how get away with it working with parallax code in individual page and not have to do a check for page in layout and render the desired pages parallax stuff?
Any insight appreciated
EDIT: in the mean time I have started implementing parallax from scratch so its less mysterious and I have precise control
The text was updated successfully, but these errors were encountered:
OK even more of a think through and looking at @tterb react spring parallax implementation (and my own from scratch) is that any parallax to really work well needs to be implemented in layout so that all elements can be accounted for on the page or they will mess up a items further up the page even if they are not meant to move at all ie the footer
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey hope all is well,
So I have had the setup for transition plugin and a fixed header working fine and dandy where you set the config to resolve the layout and don't include the "<Layout>" around individual pages files.
Now I am looking to use react spring parallax components ( Parallax and ParallaxLayer) in the pages/index BUT what I have observed is the dom elements get laid in from react spring but it is invisible, height zero I think mostly, and nothing happens on scroll but if i copy that parallax code into the layout file it kinda works with extra scroll bars though which maybe just tweaking needed where the whole page needs to be in the Parallax component.
So my question is can I some how get away with it working with parallax code in individual page and not have to do a check for page in layout and render the desired pages parallax stuff?
Any insight appreciated
EDIT: in the mean time I have started implementing parallax from scratch so its less mysterious and I have precise control
The text was updated successfully, but these errors were encountered: