vunit
v1.0.9
Published
viewport unit utility
Downloads
11
Readme
vunit
viewport unit utility
install
npm i vunit --save
usage
var Vunit = require("vunit");
var px = new Vunit(375, "w");
let styles = {
container: {
width: px(275)
},
//for hard pixels, pass in a viewport width number; returns a number
banner: {
width: px(100, document.body.offsetWidth) + "px"
}
}