jscottsmith/react-scroll-parallax

Can you do parallax and the image will remain fixed postion?

Closed this issue · 1 comments

Hey there,

I want to know if i can achieve

-.-.Google.Chrome.2024-07-04.10-52-47.online-video-cutter.com.mp4

this effect of parallax - that you are scrolling down and the image is remain "fixed" with slightly parallax effect.

website: https://www.azurim.com/

@OptimaLPro

Yes you can. Because the image is fixed you need to setup parallax using a targetElement which will determine the progress.

Here's a Codesandbox that demonstrates a similar effect as the site you shared.