Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Option | Value | Default | Description |
---|---|---|---|
top |
Number|% View Port Height|CSS Selector | 0 | The top offset from where the element should be stick. |
bottom |
Boolean|CSS Selector | false | The bottom offset until the element should stick. (true: parent element, prefixed with '!' a parent selector) |
offset |
String | 0 | The offset the Sticky should be fixed to. |
animation |
String | false | The animation to use. |
cls-active |
String | uk-active | The active class. |
cls-inactive |
String | '' | The inactive class. |
sel-target |
CSS Selector | self | The target element to apply active and inactive classes to. Defaults to the element itself. |
width-element |
CSS Selector | false | The element the Sticky should get its with from in active mode. |
show-on-up |
Boolean | false | Only show sticky element when scrolling up. |
media |
Integer|String | false | Condition for the active status - a width as integer (e.g. 640) or a breakpoint (e.g. @s, @m, @l, @xl). |
target-offset |
Boolean, Number | false | Initially make sure that the Sticky is not over a targeted element via location hash. |