Fixed Header - Toggle based on scroll direction

Does anybody know how to recreate this in Interactions please? https://codepen.io/GreenSock/pen/qBawMGb