-
this is my code ^ but the parallax component is within , should I move it to wrap Router? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I don't think it has to do with the The solution is probably something that would involve positioning the |
Beta Was this translation helpful? Give feedback.
I don't think it has to do with the
Routernecessarily.Parallaxwill take up the full height/width of the screen by default, so the typical use is to treat the component as if it was the actual page being scrolled. Since thenavis outside of it, that creates scrollable space in the top-level element, so you'd see the window scrollbar and theParallaxscrollbar.The solution is probably something that would involve positioning the
navso it isn't in the normal document flow (with something likeposition: absolute). This way,Parallaxcould still take up the entire viewport without causing another scrollbar to appear.