Comments (5)
Yup, please see a link to my code below:
https://github.com/dam4222/academy-v3/blob/staging/pages/process.js
from react-scroll-parallax.
Thank you so much for your time and help, much appreciated. I will investigate this issue and try to post my solution here.
from react-scroll-parallax.
Thanks for the video.
Can you put together a demo that reproduces the behavior, or share your code with me?
from react-scroll-parallax.
I believe this is due to the <Parallax>
element being placed within a position: fixed
container. The lib really wasn't designed with using fixed elements in mind. It's meant to only apply offsets when things are in view as they scroll by. But when it's fixed to the viewport this screws up those calculations as the element is always within view. It's also been brought up before, but I haven't worked on a solution (see #23).
The reason this doesn't happen on desktop is because a resize event is triggered on iPhones when the browser bar goes away which causes the parallax lib to update any cached values.
I would suggest to try using a layout without fixed positioning if possible. From the limited testing I did on my end it seems to fix the jumping, but obviously the site layout breaks a bit.
I'll add some warnings about using fixed element in the README.
from react-scroll-parallax.
updated readme in v1.3.5
from react-scroll-parallax.
Related Issues (20)
- Issue trying to us horizontal axis on NextJS HOT 3
- Making parallax move to end and back HOT 2
- Can't get an <a> tag to be clickable inside a layer HOT 1
- with react-custom-scrollbars HOT 1
- It always run onEnter at the beginning. HOT 1
- Mac OS - Scrolling only updates once you stop scrolling HOT 2
- Add `disabled` prop to `ParallaxProvider` HOT 1
- Not working with CRA or Create Next App HOT 3
- Stop the effect at a given position HOT 7
- Scrolling beyond a `scrollStart` or `scrollEnd` value does not update the affected property to final value HOT 1
- Styles not defined in documentation HOT 1
- Next Js 13.5 Effects are not being rendered HOT 16
- Update props of parallax element HOT 2
- Cannot read properties of undefined (reading 'destroy') on live reload HOT 14
- Parallax effect not working in nextjs 13 HOT 6
- onLoad function does not fire on image layers HOT 1
- Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a <ParallaxProvider> HOT 11
- Is it possible to animate custom properties? HOT 1
- Animation Position Issue with Sticky Container on Tab Change HOT 1
- Flickering when browser toolbar is shown/hidden HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-scroll-parallax.