0.0.0 • Published 6 years ago
bg-cover v0.0.0
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.
import cover from "bg-cover";
let $el = document.querySelector("img");
cover($el);
0.0.0
6 years ago