@firstandthird/video-fit-polyfill

2.1.0 • Public • Published

Video-fit Polyfill

npm

An object-fit polyfill for videos.

Installation

npm install @firstandthird/video-fit-polyfill

Usage

For magic:

  1. Import it
  2. Use fit-video as class in all the videos you want.
  3. Magic

If you prefer to use your own selector, import the function and use it as it's shown below.

videoFitPolyfill('.my-custom-selector')

If the browser supports object-fit it won't do anything.

Readme

Keywords

Package Sidebar

Install

npm i @firstandthird/video-fit-polyfill

Weekly Downloads

31

Version

2.1.0

License

MIT

Unpacked Size

12.7 kB

Total Files

6

Last publish

Collaborators

  • alaguna
  • aleperez92
  • dawnerd
  • ecwillis
  • jga
  • orthagonal1