$ composer require skyline/component-sticky
and require it in your templates using the
@require Sticky annotation tag.
After that, there are 3 css classes available:
Fixes an element at top of the page.
Fixes an element at bottom of the page.
A flexible content that should be extended until bottom element.
Additional an element with the class
sticky-fixed is allowed to specify animation attributes:
Observes the window for scroll events. If the window passes a scroll position, the given css class is added, or removed otherwise.
If the scroll position of the window reaches the top edge plus offset of the element, the class is added.
The css class name to add or remove.