// 11 examples
CSS Navigation Examples
Navigation is the part of a site people use without thinking about it, which is exactly why it repays being built carefully. Menus that open on hover, tabs that swap panels, breadcrumbs that show depth, and drawers that slide in on a phone all come from a small set of CSS features: :hover, :target, :focus-within, and the state a hidden checkbox or radio can hold.
The examples below cover those patterns and the ones that react to scrolling, such as headers that shrink and indicators that track which section you are reading. Each page explains what the pattern can and cannot do without script, including the cases where a keyboard user would be left behind.
←
1
2
3
4
→
Showing results 11-20 of 48
Pagination Component
Numbered page buttons with an active state driven by radio inputs and
:checked.↓ scroll to shrink the header
Shrinking Header
A sticky header that shrinks its height and text on scroll using CSS scroll-driven animations, with no JavaScript.
New
A
AJ
Alice JohnsonDesignAM
Alex MorrisEngineeringAW
Amy WuMarketingB
BC
Ben CarterEngineeringBL
Beth LeeDesignC
CK
Chris KimProductCM
Clara MillsDesignD
DJ
Dana JonesMarketingDS
Drew SmithEngineeringSticky Section Headers
Section headings that pin to the top of the scroll area as you scroll past them, contacts-list style, in pure CSS.