Pin an element in scroll

Hi there, there is a method to pin an element during scroll animation for a determinate percent of the page?

The only way to pin an element only for a specific scroll range is to use stacking stick to top, where a stick to top element lower on the page pushes the previous one away. A bit tricky to set up but can be done.