How to design a sticky page header in 2026, and whether to stick it at all
The behaviours of a sticky header in 2026 (fixed, hidden on scroll down, shrinking, translucent with blur, the button alone), what usability research says, what WCAG 2.2 requires, and how far CSS scroll-state(scrolled) is supported; as of 1 December 2026.
The pattern most often described in 2026 is a header that hides on scroll down and shows on a move up; Troiana writes that most large publishers do this c12. NN/g judges it more cautiously: it is seen mostly on phones and works moderately well, because a move up is sometimes only a return to a paragraph c4 c5. If it is used, the header should come back after a few pixels of upward movement, sliding in over about 300 to 400 ms c6.
Usability research (NN/g 2021, still cited in 2026) says to keep the bar as small as possible, opaque and in a colour different from the content background, and preferably not to animate it c1 c2 c3. Agency blogs of 2026 recommend glass with blur and shrinking on scroll; that contradicts NN/g, so we treat it as fashion, not as evidence.
Technique: scroll-state(scrolled) detects the scroll direction in CSS alone c10, but on 30 November 2026 it works only in Chrome and Edge 144+, for about 70% of users, so only as an enhancement over a safe default behaviour c11. The figure of “22% faster navigation” attributed to NN/g is not in the NN/g article or in Smashing; do not cite it.
Claims
In our words
In the source's words
NN/g (2021): a sticky header takes screen space from content, so keep it as small as possible
Sticky headers inherently take up space on the screen that could be used for content, so it’s important that you use that space responsibly.
nngroup.com · T2
NN/g (2021): the sticky header should be opaque and differ from the content background; translucent headers hurt contrast
the sticky header must be an opaque color, different from the background of main content areas
nngroup.com · T2
NN/g (2021): best not to animate a sticky header at all
In general, it’s best to not use animation at all and simply keep the header in place as the user scrolls.
nngroup.com · T2
NN/g (2021): the hide-on-scroll-down, show-on-scroll-up header is seen mostly on mobile sites
Partially persistent headers are most frequently seen on mobile sites
nngroup.com · T2
NN/g (2021): that pattern works only moderately well, because a scroll up may just be rereading
This style works moderately well.
nngroup.com · T2
NN/g (2021): if used, reveal after a few pixels of upward scroll with a slide-in of about 300 to 400 ms
A slide-in animation that is roughly [300–400ms long](https://www.nngroup.com/articles/animation-duration/) will preserve that natural feel
nngroup.com · T2
WCAG 2.2 SC 2.4.11 (AA): a focused component must not be entirely hidden by author content
When a user interface component receives keyboard focus, the component is not entirely hidden due to author-created content.
w3.org · T1
W3C names sticky headers as typical content that hides focused items
Typical types of content that can overlap focused items are sticky footers, sticky headers, and non-modal dialogs.
w3.org · T1
Chrome guide: set scroll-padding-top at least equal to the sticky header height so focused controls stay visible
Add `scroll-padding-top` to the scrollport and set the value to be equal or greater than the sticky element's height.
developer.chrome.com · T1
CSS scroll-state(scrolled) can detect scroll direction without JavaScript
`scrolled`: Queries whether a container was most recently scrolled in the given direction.
As of 30 Nov 2026 scroll-state(scrolled) is not Baseline; about 70% of users have it (Chrome and Edge 144+)
Usage70%of people can use this30% use a browser without it.
modern-css.com · T4
Troiana (Sep 2026): hide on scroll down and show on scroll up is what most large publishers now do
This is the best general-purpose behaviour for content sites and it is what most large publishers now do.
troiana.net · T4
Troiana (Sep 2026): on product pages, let the header scroll away and keep only the main call to action fixed
On product, pricing and booking pages, let the header scroll away and keep only the primary
troiana.net · T4
Smashing (2023): on pages that mainly convey information with little navigation, sticky menus help little
If it’s designed to primarily convey information and we don’t expect a lot of navigation, then sticky menus aren’t very helpful.
smashingmagazine.com · T3