Is it possible to make header slide when scrolling?

I tried to use .js to make header slide up when scrolling down and slide down when scrolling up, but I can’t make it work… Is it possible?

Hello,

It looks like this issue requires some coding and testing, this goes beyond our support policy. It’s considered advanced customization. As an option, you can contact Codeable for this kind of service, or find a reputable freelancer on Upwork.

Kind Regards, Roman.