- Source:
- See:
By default, this module acts as a function that creates LivePhotos, but using the static method is preferable.
Members
(static) LivePhoto
- Source:
- See:
Passthrough for the LivePhoto
class
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>
(static) addStyles()
- Source:
Appends the styles to the page
(static) noStyles()
- Source:
Prevents styles from being appended to the page
(static) cleanup()
- Source:
Removes appended styles