1.0.5 • Published 10 years ago

video-box v1.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

video-box

video-box is a small class for easy video embed overlays

Usage

npm install video-box

Element to trigger video-box. To this you pass the embed url.

<button class="js-has-vb" data-embed-url="videoembedurlhere"></button>

The overlay container. Preferably added to the end of the your template.

<div class="vb-container"></div>

Initalize video-box

import VideoBox from 'video-box'

const videoBox = new VideoBox()

Options

  • container: the outer container
  • fade : number of seconds to fade in and out the overlay (default is 0.25)
1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago