Class: ThumbnailPositionOnImageHover

.thumbnail.ThumbnailPositionOnImageHover(imageElement, imageElementDataAttributeWebVTTUrl, timestampTextElement, timestampTextOnPointerLeave)

Show thumbnails referenced in a webVTT file relative to the hover position of an image element.

Constructor

new ThumbnailPositionOnImageHover(imageElement, imageElementDataAttributeWebVTTUrl, timestampTextElement, timestampTextOnPointerLeave)

Provide a mouse controlled thumbnail playback. Construct the object and attach all required event listeners to the image element.
Parameters:
Name Type Default Description
imageElement Object Image element where event listeners should be attached.
imageElementDataAttributeWebVTTUrl String data-src-webvtt Name of the data attribute in the image element.
timestampTextElement Object null Text element to show timestamps as inner text.
timestampTextOnPointerLeave String Timestamp text that is shown when the pointer leaves the element.
Author:
Source:

Extends

  • ThumbnailPositionOnElementHover