jQuery Plugin For Making Text Responsive To The Screen - Textsive
| File Size: | 2.51 KB |
|---|---|
| Views Total: | 811 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
Textsive is an easy-to-use jQuery plugin for responsive text that makes the font size of your text as large as possible to fill its parent container.
How to use it:
1. Include the necessary jQuery javascript library and the jQuery textsive plugin at the end of your Html page.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="jquery.textsive.js"></script>
2. Wrap the text in a container element.
<div class="container"> <p class='demo'>Your text goes here</p> </div>
3. Initialize the plugin with options to make the text responsive to fit the parent container.
$(".demo").textsive({
minFontSize:10,
maxFontSize:1000,
lineHeight:0.95,
scale:1.25
});
This awesome jQuery plugin is developed by midnightviking. For more Advanced Usages, please check the demo page or visit the official website.











