In the past, I have implemented a method similar to this:
However, I am not a fan of the "flicker" effect that occurs when the page is scrolled and the div needs to move along with it. Recently, I have come across websites where certain elements (such as a div) stay fixed in place as the page is scrolled, creating a seamless and aesthetically pleasing experience.
Unfortunately, I cannot recall where I saw this feature lately in order to investigate further. That's why I am reaching out here to see if any of you experts can provide assistance or suggestions on how to achieve this effect.
Thanks in advance.