Preview

November 13, 2017 ยท View on GitHub

Overview

This plugin allows the creation of a preview effect on videos: playing on hover and with possibility of mute/fade-in/fade-out its audio.

Keyword to use it

features: [..., 'preview']

API

ParameterTypeDefaultDescription
previewModebooleanfalseMedia starts playing when users mouse hovers on it, and resets when leaving player area
muteOnPreviewModebooleantrueWhen playing in preview mode, turn on/off sound
fadeInAudioStartnumber0If fadeInAudioInterval is set, time when it starts fading in
fadeInAudioIntervalnumber0When playing media, time interval to fade in audio (must be greater than zero)
fadeOutAudioStartnumber0If fadeOutAudioInterval is set, time when it starts fading out
fadeOutAudioIntervalnumber0When playing media, time interval to fade out audio (must be greater than zero)
fadePercentnumber0.2Percentage in which media will fade in/out (in decimals, where 0.2 = 20%, 1 = 100%)
pauseOnlyOnPreviewbooleanfalseWhether reset or not the media when on preview mode
delayPreviewnumber0Delay in milliseconds to start previewing media