Guides / Layout

Sticky Positioning

Sticky: An element that 'sticks' to the viewport edge after scrolling to a position—commonly used for nav bars, toolbars, and tables of contents.

Live demo

Sticky navigation

Implementation prompts

Standard

Sticky navbar: pins to the top after scrolling past the first screen, with a shadow for separation.

With motion

Sticky navbar with smooth shadow fade-in on pin and a 200ms slide-down reveal; pins after the first screen.
Design spec entry
### Sticky Positioning (#sticky)

Category: Layout

Sticky: An element that 'sticks' to the viewport edge after scrolling to a position—commonly used for nav bars, toolbars, and tables of contents.

- Do: Sticky navbar: pins to the top after scrolling past the first screen, with a shadow for separation

With motion: Sticky navbar with smooth shadow fade-in on pin and a 200ms slide-down reveal; pins after the first screen.

Live demo: https://uidesignmd.com/guides/sticky/