Skip to content

hemanth/video-in-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published