The affix component toggles
position: fixedon and off, emulating the effect found with
The navigation on the right is a live demo of the affix component (hidden on mobile devices).
- You must provide CSS for the positioning and width of your affixed content.
- Do not use affix on an element contained in a relatively positioned element, such as a pulled or pushed column.
<affix :offset="50"> <ul> <li>...</li> <li>...</li> <li>...</li> </ul> </affix>
||Number||0||Pixels to offset from screen when calculating position of scroll.|
||The affix body.|
||This event fires immediately before the element has been affixed.|
||This event is fired after the element has been affixed.|