STACKS
As of +30 days +90 days +1 year
sticky-header
14 within valid-until
0 past it, not rechecked

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.

On a page that mainly informs and navigates little, a sticky menu gives little c14. On product pages it is better to stick the main button alone than the whole header c13.

Accessibility: WCAG 2.2 (2.4.11, AA) forbids hiding a focused element entirely, and W3C names sticky headers as a typical cause c7 c8. The fix: scroll-padding-top of at least the header's height c9.

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

c1checked on 1 Dec 2026valid until 30 May 2027

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

c2checked on 1 Dec 2026valid until 30 May 2027

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

c3checked on 1 Dec 2026valid until 30 May 2027

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

c4checked on 1 Dec 2026valid until 30 May 2027

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

c5checked on 1 Dec 2026valid until 30 May 2027

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

c6checked on 1 Dec 2026valid until 30 May 2027

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

c7checked on 1 Dec 2026valid until 30 May 2027

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

c8checked on 1 Dec 2026valid until 30 May 2027

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

c9checked on 1 Dec 2026valid until 30 May 2027

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

c10checked on 1 Dec 2026valid until 1 Mar 2027

CSS scroll-state(scrolled) can detect scroll direction without JavaScript

`scrolled`: Queries whether a container was most recently scrolled in the given direction.

developer.mozilla.org · T1

c11checked on 1 Dec 2026valid until 1 Mar 2027

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

c12checked on 1 Dec 2026valid until 30 May 2027

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

c13checked on 1 Dec 2026valid until 30 May 2027

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

c14checked on 1 Dec 2026valid until 30 May 2027

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

This card

Last checked on 1 Dec 2026. As data: JSON, Markdown. A claim's permanent address is its number: stacks.jakubdudek.com/sticky-header/c1.