rem-help
version 1.0.1
quickly add rem to your project
Translation
Install
yarn add rem-help
& npm install rem-help --save
Use
import
let rem = rem...
browser
Api
config
let rem = eventType: 'resize' // type of monitoring events scale: 10 // scaling ratio maxWidth: 750 // maximum response width minWidth: 320 // minimum response width auto: true // whether to respond to the Resize event accuracy: 3 // how many decimal places are reserved { // resize function }
methods
rem.addRem
add rem to the browser
rem.addRem()
rem.removeRem
remove rem from the browser, also remove related monitoring events.
rem.removeRem()