[[include:Options/Interactivity/Div.md]]

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.