1.0.0 • Published 4 years ago
kc-emresize v1.0.0
EM Resize (Browser only)
Set an element's proportional font size according to window size.
Install
npm install kc-emresize
Use
var el = document.querySelector('#my-elem');
var fsz = 18; // Standard font size
var wdt = 320; // Standard width
var max = 768; // Max width
var min = 320; // Min width
emResize(el, fsz, wdt, max, min);
1.0.0
4 years ago