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