1.1.3 • Published 2 years ago
h-vw v1.1.3
viewport
Mobile adaptive scheme
移动端自适应方案
Project setup
npm i h-vw -S
or
yarn add h-vw
Project usage
import 'h-vw'
vw(); //default = 375
result
document.documentElement.clientWidth === 375
other usage
import vw from 'h-vw'
vw(480);
result
document.documentElement.clientWidth === 480