1.0.2 • Published 5 years ago
emresize v1.0.2
EM Resize (Browser only)
Set an element's proportional font size according to window size.
Install
npm install 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);