Testing:
Scroll down to test ↓
Keep scrolling down. The header should smoothly hide.
Notice the header's background becomes more opaque after scrolling past 50px.
Now scroll back up. The header should immediately show again.
The animation should be smooth without jitter or sluggishness.
Try scrolling rapidly up and down.
The header should respond smoothly to your scroll direction changes.
Scroll all the way to the top to verify the header appears correctly.