2.1.0 • Published 6 years ago

@firstandthird/video-fit-polyfill v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.

2.1.0

6 years ago

2.0.0

6 years ago