Ads

Sunday, 7 September 2014

Adapttext - Rescale text depending on it's container width

Download   Demo


Adapttext is a jQuery plugin that help rescale text depending on it’s container width.



1. INCLUDE JS FILES


<script src="jquery.js"></script>
<script src="dist/jquery-adapttext.min.js"></script>

2. HTML


<p class="responsive">Hello world</p>
<p class="responsive" data-compression="10" data-max="100" data-min="10">Hello world</p>
<h1 class="responsive" data-scrollable="true">Long Text With Scrollable Support</h1>

3. JAVASCRIPT


jQuery(function($) 
$('.responsive').adaptText();
);



Adapttext - Rescale text depending on it's container width

No comments:

Post a Comment