You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pass arguments to the shortcode with key=value. Nested keys follow the particles.js schema using dot notation, for example particles.size.value=3. All values map directly to the Particles.js configuration and merge with the defaults shown below.
Container attributes
Key
Default
Description
id
auto (quarto-particles-js-#)
HTML id for the wrapper div.
class
quarto-particles-js
Additional classes appended to the default (the element also gets the generated id as a class).
style
(none)
Inline styles applied to the wrapper (use to set width, height, background, etc.).
config
(none)
JSON string applied to the config. Useful for pasting a full particles.js preset.
config-mode (config_mode)
merge
When replace, the JSON supplied via config bypasses defaults; otherwise it merges with them.
The default quarto-particles-js class (defined in _extensions/particles/particles.css) sets the wrapper to width: 100% and height: 100%. Supply your own CSS or a style attribute when you need fixed dimensions or background colors. Each instance also adds its id as a class to make instance-specific styling easier.
particles.number
Key
Default
Description
particles.number.value
80
Base particle count.
particles.number.density.enable
true
Enable automatic density scaling.
particles.number.density.value_area
800
Area used for density calculation.
particles.color
Key
Default
Description
particles.color.value
#5b5b5b
Particle color (hex, RGB, or array).
particles.shape
Key
Default
Description
particles.shape.type
circle
Shape type (circle, edge, triangle, polygon, star, image).