Resize Text Fonts Based On The Screen Width – font-master

Category: Javascript , Layout , Text | May 3, 2018
Author:foxreaper
Views Total:361 views
Official Page:Go to website
Last Update:May 3, 2018
License:MIT

Preview:

Resize Text Fonts Based On The Screen Width – font-master

Description:

Just another text resize library written in pure JavaScript that dynamically scales font sizes of your text to fit the parent container.

Ideal for responsive web design that makes your headlines as large as possible no matter how you resize the window.

How to use it:

Wrap your text content into a container called ‘master’ as these:

<div id="master">
  <div>CSSSCRIPT.COM</div>
  <p>Text using font-master.js with paragraph</p>
</div>

Download and place the JavaScript file ‘font-master.js’ at the bottom of the web page. That’s it.

<script src="font-master.js"></script>

You Might Be Interested In:


Leave a Reply