video-in-view

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i video-in-view

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hemanth