1.0.2 • Published 4 years ago

emresize v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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);
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago