Adjust visibility calculation for custom header?

I know this is an old topic but I am just trying to solve the same issue.

My first step was to try and find a site that had it working but it looks to me like no one has solved this and to me it seems like a really strange UX. Not to pick on anyone but the large header at zegist really highlights the issue.

Initial load:

Scroll down, quite a way and you have lost the d-header:

Then all of a sudden it pops in:

Solving it seems to be beyond me personally but I would love to find a way!

1개의 좋아요