{
 "topic": "sticky-header",
 "url": "https://stacks.jakubdudek.com/sticky-header",
 "title": "How to design a sticky page header in 2026, and whether to stick it at all",
 "description": "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.",
 "aliases": [
  "sticky header",
  "header",
  "menu",
  "navigation",
  "hide on scroll",
  "partially persistent header",
  "hidey bar",
  "shrinking header",
  "backdrop blur",
  "glass",
  "scroll-state",
  "scrolled",
  "container query",
  "scroll-padding-top",
  "WCAG 2.4.11",
  "focus not obscured",
  "NN/g",
  "content-to-chrome",
  "sticky CTA"
 ],
 "domain": "design",
 "created": "2026-12-01",
 "last_checked": "2026-12-01",
 "claims": [
  {
   "ref": "sticky-header#c1",
   "url": "https://stacks.jakubdudek.com/sticky-header/c1",
   "card": "sticky-header",
   "id": "c1",
   "status": "valid",
   "claim": "NN/g (2021): a sticky header takes screen space from content, so keep it as small as possible",
   "quote": "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.",
   "source_url": "https://www.nngroup.com/articles/sticky-headers/",
   "tier": "T2",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c2",
   "url": "https://stacks.jakubdudek.com/sticky-header/c2",
   "card": "sticky-header",
   "id": "c2",
   "status": "valid",
   "claim": "NN/g (2021): the sticky header should be opaque and differ from the content background; translucent headers hurt contrast",
   "quote": "the sticky header must be an opaque color, different from the background of main content areas",
   "source_url": "https://www.nngroup.com/articles/sticky-headers/",
   "tier": "T2",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c3",
   "url": "https://stacks.jakubdudek.com/sticky-header/c3",
   "card": "sticky-header",
   "id": "c3",
   "status": "valid",
   "claim": "NN/g (2021): best not to animate a sticky header at all",
   "quote": "In general, it’s best to not use animation at all and simply keep the header in place as the user scrolls.",
   "source_url": "https://www.nngroup.com/articles/sticky-headers/",
   "tier": "T2",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c4",
   "url": "https://stacks.jakubdudek.com/sticky-header/c4",
   "card": "sticky-header",
   "id": "c4",
   "status": "valid",
   "claim": "NN/g (2021): the hide-on-scroll-down, show-on-scroll-up header is seen mostly on mobile sites",
   "quote": "Partially persistent headers are most frequently seen on mobile sites",
   "source_url": "https://www.nngroup.com/articles/sticky-headers/",
   "tier": "T2",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c5",
   "url": "https://stacks.jakubdudek.com/sticky-header/c5",
   "card": "sticky-header",
   "id": "c5",
   "status": "valid",
   "claim": "NN/g (2021): that pattern works only moderately well, because a scroll up may just be rereading",
   "quote": "This style works moderately well.",
   "source_url": "https://www.nngroup.com/articles/sticky-headers/",
   "tier": "T2",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c6",
   "url": "https://stacks.jakubdudek.com/sticky-header/c6",
   "card": "sticky-header",
   "id": "c6",
   "status": "valid",
   "claim": "NN/g (2021): if used, reveal after a few pixels of upward scroll with a slide-in of about 300 to 400 ms",
   "quote": "A slide-in animation that is roughly [300–400ms long](https://www.nngroup.com/articles/animation-duration/) will preserve that natural feel",
   "source_url": "https://www.nngroup.com/articles/sticky-headers/",
   "tier": "T2",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c7",
   "url": "https://stacks.jakubdudek.com/sticky-header/c7",
   "card": "sticky-header",
   "id": "c7",
   "status": "valid",
   "claim": "WCAG 2.2 SC 2.4.11 (AA): a focused component must not be entirely hidden by author content",
   "quote": "When a user interface component receives keyboard focus, the component is not entirely hidden due to author-created content.",
   "source_url": "https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html",
   "tier": "T1",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c8",
   "url": "https://stacks.jakubdudek.com/sticky-header/c8",
   "card": "sticky-header",
   "id": "c8",
   "status": "valid",
   "claim": "W3C names sticky headers as typical content that hides focused items",
   "quote": "Typical types of content that can overlap focused items are sticky footers, sticky headers, and non-modal dialogs.",
   "source_url": "https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html",
   "tier": "T1",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c9",
   "url": "https://stacks.jakubdudek.com/sticky-header/c9",
   "card": "sticky-header",
   "id": "c9",
   "status": "valid",
   "claim": "Chrome guide: set scroll-padding-top at least equal to the sticky header height so focused controls stay visible",
   "quote": "Add `scroll-padding-top` to the scrollport and set the value to be equal or greater than the sticky element's height.",
   "source_url": "https://developer.chrome.com/docs/modern-web-guidance/guides/ui-atoms/state-aware-sticky-headers",
   "tier": "T1",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c10",
   "url": "https://stacks.jakubdudek.com/sticky-header/c10",
   "card": "sticky-header",
   "id": "c10",
   "status": "valid",
   "claim": "CSS scroll-state(scrolled) can detect scroll direction without JavaScript",
   "quote": "`scrolled`: Queries whether a container was most recently scrolled in the given direction.",
   "source_url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Conditional_rules/Container_scroll-state_queries",
   "tier": "T1",
   "checked": "2026-12-01",
   "valid_until": "2027-03-01"
  },
  {
   "ref": "sticky-header#c11",
   "url": "https://stacks.jakubdudek.com/sticky-header/c11",
   "card": "sticky-header",
   "id": "c11",
   "status": "valid",
   "claim": "As of 30 Nov 2026 scroll-state(scrolled) is not Baseline; about 70% of users have it (Chrome and Edge 144+)",
   "quote": "Usage70%of people can use this30% use a browser without it.",
   "source_url": "https://modern-css.com/auto-hiding-header-without-scroll-listeners/",
   "tier": "T4",
   "checked": "2026-12-01",
   "valid_until": "2027-03-01"
  },
  {
   "ref": "sticky-header#c12",
   "url": "https://stacks.jakubdudek.com/sticky-header/c12",
   "card": "sticky-header",
   "id": "c12",
   "status": "valid",
   "claim": "Troiana (Sep 2026): hide on scroll down and show on scroll up is what most large publishers now do",
   "quote": "This is the best general-purpose behaviour for content sites and it is what most large publishers now do.",
   "source_url": "https://troiana.net/insights/should-you-use-a-sticky-header/",
   "tier": "T4",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c13",
   "url": "https://stacks.jakubdudek.com/sticky-header/c13",
   "card": "sticky-header",
   "id": "c13",
   "status": "valid",
   "claim": "Troiana (Sep 2026): on product pages, let the header scroll away and keep only the main call to action fixed",
   "quote": "On product, pricing and booking pages, let the header scroll away and keep only the primary",
   "source_url": "https://troiana.net/insights/should-you-use-a-sticky-header/",
   "tier": "T4",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  },
  {
   "ref": "sticky-header#c14",
   "url": "https://stacks.jakubdudek.com/sticky-header/c14",
   "card": "sticky-header",
   "id": "c14",
   "status": "valid",
   "claim": "Smashing (2023): on pages that mainly convey information with little navigation, sticky menus help little",
   "quote": "If it’s designed to primarily convey information and we don’t expect a lot of navigation, then sticky menus aren’t very helpful.",
   "source_url": "https://www.smashingmagazine.com/2023/05/sticky-menus-ux-guidelines/",
   "tier": "T3",
   "checked": "2026-12-01",
   "valid_until": "2027-05-30"
  }
 ],
 "as_of": "2026-12-04",
 "note": "A claim says what its source said on the day it was checked. \"valid_until\" is the date by which it should be checked again, not a promise that it is true today.",
 "license": "CC BY 4.0",
 "author": "Jakub Dudek",
 "conclusions": "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].\n\nUsability 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.\n\nOn 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].\n\nAccessibility: 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].\n\nTechnique: `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.",
 "history": []
}
