Hide navbar according to scroll direction, same speed as scrolling

The navbar on this website, when in mobile mode, appears to be scrolling in and out of view as you scroll up or down.
The tricky part is, that the speed it slides in/out is the same as the scrolling speed.
The website was done in Webflow. How was this done?

Anyone? Would appreciate any help!