Change scroll interaction to value instead of time

Is there a way to change the ‘when page scrolled’ interaction to be a value instead of a timed trigger?

I’m trying to create a navbar that hides with the motion of the scroll. Then reappears when scrolling up, but at the same rate of scroll. Not on a timed trigger.

There’s an example on this site, once you scroll past the first section.

Is this possible in Webflow? Tried combining the ‘while page is scrolling’ with the ‘page scrolled’ interactions, but it jumps in value. Wondering if there’s a way to either start at 0% of the interaction from the current location on the page, or change the values from timed to linear?

Thanks