On Div "Event"

key option type example notes
enable boolean true / false
mode string "bounce"
"bubble"
"repulse"
selectors string
array
a single or an array of DOM CSS selectors replaces the old el and elementId property
type string "circle"
"rectangle"
The div shape type
interface IDivEvent {
    enable: boolean;
    mode: SingleOrMultiple<string>;
    selectors: SingleOrMultiple<string>;
    type: "circle" | "rectangle" | DivType;
}

Implemented by

Properties

enable: boolean

This property is used to enable or disable the event.

mode: SingleOrMultiple<string>

This property is used to define how the particles are interacting with the divs.

selectors: SingleOrMultiple<string>

This property is used to define the divs query selectors.

type: "circle" | "rectangle" | DivType

This property is used to define the divs shape types.