I've been attempting to replicate the scrolling animation seen on this particular website: . The effect involves keeping the previous content in place while new content stacks on top as you scroll. I have experimented with using position:sticky
and adjusting the z-index
for each element, but so far it has not yielded the desired outcome. Does anyone know how to achieve this scrolling effect using CSS?
Source: https://codepen.io/daniel5120/pen/PoEoaEP In essence, I am looking to maintain the original placement of the contents within the first container while allowing the second element to overlay the first.