Good morning, I really like the effect on this website (https://showcasy.framer.website/) where while scrolling the images change and they overlap. I’m using ReactJS, has anyone some ideas to get that effect? I thought about creating a big container with position: sticky and inside of this as many elements as there are the images I have with display: none. Then, I thought about using JS to get the actual scrollY and when the user gets to a specified scrollY some images gets a class named "active" that puts them display: block, but I failed miserably, so I would be grateful if anyone could help me, thanks!
2
Answers
I did some research in relation to your question and on this site it’s like a mix of several packages that was used:
react-stacked-card-list
framer-motion
and react-spring
with these 3 packages and a little research you should be able to reproduce this effect.
but if you want to code without these packages, it’s more complex, but here’s a code sample:
You should try GSAP for these kind of effects.
Here is an example:
https://gsap.com/community/forums/topic/33761-overlapping-card-effect/
Thanks.