An element with a sticky-top
class will move along the page until it reaches the top. The element will stay in place until replaced by another element with a sticky-top
class or if the user scrolls back up above the element.
Group of Classes | CSS |
---|---|
.sticky-top |
position: -webkit-sticky; position: sticky; top: -1px; |