StickyVideo

StickyVideo

new StickyVideo()

Source:
Properties:
Name Type Description
stickyAttribute string

CSS selector for videos that should be made sticky

wrapperTemplate string

Sticky video markup to wrap around player embeds

stickySelectors object

list of CSS classes which apply to sticky video elements

pageContainerSelector string

selector for the sticky video parent container

pageContainerListener object

In View listener of pageContainer element

activeIFramePaused boolean

T/F if the active sticky player is paused while unstuck

activeIFrameId string

ID of the active sticky player if one exists

videoObserver object

InView instance for observing video object

containerObserver object

InBounds instance for observing container

intersectionRatio float

Proportion of player visible below which we switch to sticky

Sticky Video functionality. Handles multiple potential sticky videos on the same page. Only one video may be sticky at a time. This is a class because each sticky video needs to be initialized independently.

Methods

(static) disable()

Source:

Disable sticky video

(static) enable()

Source:

Enable sticky video

(static) focusVideo()

Source:

Bring the video in view.

StickyVideo