Web features explorer

Sticky positioning

Widely available since 2022-03-19
Tags: css Groups: CSS > Layout > Positioning

The position: sticky CSS declaration positions an element in the normal flow until it crosses a specified threshold, at which points it becomes fixed (stuck) at that position.

Learning resources on MDN

Browser support (view on caniuse.com)