The :stuck selector checks if the element is currently “stuck” with the position: sticky.
:stuck
position: sticky
Stay ahead of the latest UI Dev news and subscribe to my newsletter.