How to Detect When a Sticky Element Gets Pinned | CSS-Tricks

Totally agree with David, on CSS needing a selector to know if a position: sticky; element is doing its sticky thing or not. Ideally there would be

Actions
Connections