Twice as sticky!

Hi folks!

Does anyone know how to add a double sticky to an element?

So basically it would stick say center of page which is done. But then slide up, and stick again at the top of the page? I thought initially by getting element below to knock it off sticky, then make that sticky. But the above section once nudged keeps moving.

I ‘think’ it can be done by creating a div holder and making that sticky to the main section somehow, then make the element sticky to that larger div, so in effect the element sticks inside the large div holder, then the div holder becomes sticky to that section. But doesn’t seem to do the trick.

All gets rather complicated. I’m sure the talent out there someone has added a 2nd stick to an element.

Thanks a million!