Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

FontPercent

A simple javascript library for responsive font sizes.

FontPercent.js is extremely easy to use.

Step 1. Install

    Install manually or through Nuget:
    PM > Install-Package FontPercent

Step 2. Include reference.

	<script src="font-percent.min.js"></script>

Step 3. Set font sizes.

	<div fp="5%">This div uses inline font size. 5%</div>
						or
	<div data-fp="5%">This div uses inline font size. 5%</div>

Step 4. Initialize

	$(document).ready(function(){ 
		fontPercent.init(); 
	});

FontPercent.js also supports classes!

	<div class="fp-test1">This div is using the addClass function. 6%</div>
	fontPercent.addClass({className: 'fp-test1', size: '6%'});

About

A simple javascript library for responsive font sizes.

Resources

License

Releases

No releases published

Packages

No packages published