https://stackblitz.com/edit/react-rzanw4?file=src%2FApp.js,src%2Fstyle.css
Hi, in the attached link, there are 3 divs and a sandwiched pinned animation. When the 3 divs are within the same outer div, it behaves as expected.
Div1, then below that is the animation and the spacing, then Div2, then Div3. The green div should be below the blue div.
But when div3 is placed outside the component, it randomly gets sucked into the middle. I'm not sure what is causing this because the padding seems correct.
Thank you.