Skip to content

ericmikkelsen/lazyVideo

Repository files navigation

lazyVideo

lazyVideo

Installation

  1. run npm install lazyvideo
  2. add import LazyVideo from "./node_modules/lazyvideo/index.js" in the top of your document
  3. Where you want to use add const lazyVideo = new LazyVideo();
  4. In your CSS add :root{ --lazyVideo: 1 } in any situation that you'd like be playing video.

Developing

npm run serve will run a server at localhost:1222