Skip to main content

Accessors

note

All Module accessors are available in this class.

elements

Type: Element[]

Returns all elements currently being observed.

const observer = new InView();

observer.elements // returns an array of observable elements

isInitialStart

Type: boolean

Indicates whether the observation has started for the first time.

const observer = new InView();

observer.isInitialStart // true or false