1.0.0 • Published 8 years ago

video-in-view v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

video-in-view

Play/Pause video when in/out of the view.

DEMO

Checkout the DEMO!

Install

$ npm install --save video-in-view

Usage

const videoInView = require('video-in-view');

// Plays and pauses when the video.
videoInView('.selector', {loop: true})

// Operators on all the video tags.
videoInView({loop:true, mute:true})

Options

{
  mute,
  loop
}

License

MIT © Hemanth.HM