I think this won’t be possible to solve it, like you want, because you can’t pin or unpin elements by code.
Perhaps a good option for the velo-wishlist…
https://www.wix.com/velo/wishlist
But what you can do is to hide or unhide the pinned element on your screen when passing a certain scroll-point.