Interface: ParticlesOptions
features/particles/particles.ParticlesOptions
An object that configures Particles.
Properties
classes
• Optional
classes: Computable
<Record
<string
, boolean
>>
Dictionary of CSS classes to apply to this feature.
Defined in
profectus/src/features/particles/particles.tsx:19
onContainerResized
• Optional
onContainerResized: (boundingRect
: DOMRect
) => void
Type declaration
▸ (boundingRect
): void
A function that is called when the particles canvas is resized.
Parameters
Name | Type |
---|---|
boundingRect | DOMRect |
Returns
void
Defined in
profectus/src/features/particles/particles.tsx:23
onHotReload
• Optional
onHotReload: VoidFunction
A function that is called whenever the particles element is reloaded during development. For restarting particle effects.
Defined in
profectus/src/features/particles/particles.tsx:25
style
• Optional
style: Computable
<StyleValue
>
CSS to apply to this feature.