| bones_defaults | R Documentation |
Sets the defaults that withBones() uses for the rest of the session.
An argument that is NULL does not change its default. An argument that
you give to withBones() is stronger than a default from here.
bones_defaults(
animation = NULL,
color = NULL,
highlight = NULL,
radius = NULL,
speed = NULL,
stale = NULL,
delay = NULL,
min_time = NULL,
remember = NULL
)
animation |
How the placeholder moves:
Users who ask their system to reduce motion always get |
color |
The colour of the placeholder, as a CSS colour. By default it comes from the theme of the page: the text colour of the bslib theme, made faint. A colour given here is stronger than the theme. |
highlight |
The colour of the band of light in the |
radius |
The CSS corner radius of the placeholder bars. By default it follows the rounding of the theme. |
speed |
The time of one animation cycle, in seconds. |
stale |
The default for the |
delay, min_time |
The defaults for the |
remember |
The default for the |
The old values, invisibly, in the form that options() uses.
Give them to options() to restore them. Do not give them to
bones_defaults(): NULL there means "do not change", so an option
that had no value before would keep the new value.
old <- bones_defaults(animation = "pulse", radius = "0.5rem")
bones_skeleton("text")
options(old)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.