--- layout : 'default' css : '' element : 'sticky' elementType : 'module' title : 'Sticky' description : 'A sticky element sticks to the browsers viewport as page content is scrolled' type : 'UI Module' status : 'Undocumented' --- <%- @partial('header', { tabs: { overview: 'Overview' } }) %>

Current Progress

90%
Needs Documentation

Usage

Content on Rails

Sticky allows for content to stick itself to a different elements viewport, so that it remains on screen as long as its related content is visible

Sticky content is a common pattern for content-based websites to allow for related links, author information, footnotes, and other extra information to be displayed while a user is engaged with a section of content. The grace of a sticky element, compared to a fixed element, is that sticky content is also designed to remove itself from view when a user is no longer engaged with that section, allowing for other content sections or a footer section to appear without distraction

What's Different?

Semantic's sticky component caches content positions on load then uses DOM Mutations Observers to make sure that content positions adjust as an element adjusts itself.

Fixed Content Taller than the Browser

In addition, SUI's component gracefully handles many edge cases of sticky content, allowing for the sticky column itself to scroll separately from the main site scrollbar if it cannot fit inside a browser viewport, binding to the top or bottom edge of the viewport when fully visible

Development Progress

This is an undocumented component, but is mostly complete.

You can help support the future development of the Semantic UI project, and help boost the priority of this component by donating to Semantic UI development.

Please be sure to leave a note in the comments to indicate that you are interested in the development of this particular component.