I am looking to create scrolling animations similar to the ones demonstrated below using React, Next.js, and TailwindCSS.
It's a bit difficult to describe this effect (scroll -> stack -> appear), but essentially as the user scrolls down, the next section appears in a fixed position. Then, once it reaches a certain point, it starts moving.
My assumption is that it involves a combination of z-index
, but I'm unsure of how to actually implement it.
https://i.sstatic.net/xeQyp.gif
I came across a website demonstrating this effect and would like to know how to achieve something similar: