LivePhotos

Methods

(static) initialize([elements], [options]) → {Array.<LivePhoto>}

Source:

Initializes the Live Photos on a page specified by the data-live-photo attribute or supplied

Parameters:
Name Type Attributes Description
elements Object | Array | string
optional

elements or selectors to create Live Photos from

options Object
optional

options passed to each live photo

Returns:

Array of LivePhoto instances

Type
Array.<LivePhoto>