affix | R Documentation |
The affix
utility function applies Bootstrap classes to fix elements to the
top or bottom of a page. Use "sticky"
to cause an element to fix to the top
of a page after the element is scrolled past. Important, the IE11 and Edge
browsers do not support the sticky behavior.
affix(x, position)
x |
A tag element or .style pronoun. |
position |
One of |
div() %>% affix("sticky")
# ->
div() %>% cascadess::position_sticky()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.