URGENT HELP NEEDED

Can someone help me with this???
I am building my hospital’s website and need a menu animation like this:
Can someone help me with code please? Any ideas? I tried modifying Code Queen’s Shrinking header effect, but I can’t seem to find the header properties (on viewport enter and leave)

Hi there …

If it’s so urgunt, please drop us an email at contact@nasriya.net and I’ll step in to help asap.

If it’s not too urgent, we can dicuss it here and I’ll help you build it.

Ahmad

Hey! Thanks for this. So, I’ve been able to code it in a way that my header does change on scroll. But I still am not getting the level of animation that the video had. Maybe you could help with that?
Here’s how mine looks right now: