An open API service indexing awesome lists of open source software.

https://github.com/uppercod/bg-cover

It allows to adjust both image and video to the size with center/cover cut format 🔎
https://github.com/uppercod/bg-cover

Last synced: about 1 year ago
JSON representation

It allows to adjust both image and video to the size with center/cover cut format 🔎

Awesome Lists containing this project

README

          

# bg-cover

It allows to adjust both image and video to the size with center/cover cut format.

Allowing for example to set videos or background images scaled perfectly to the size of the contender

## cover(HTMLElement element)

The tags supported by bg-cover with **img** and **video**.

```js
import cover from "bg-cover";

let $el = document.querySelector("img");

cover($el);
```