jQuery Text Resize Plugin

September 7, 2014 10:47 pm Published by Leave your thoughts

So I’ve written my second jQuery plugin and this time it’s actually useful. It’s a text resize utility. It still needs some work on the styling, but that’s all the time I’ve got for tonight.
Check out the demo! or Download jQuery Text Resize Plugin
Simply add the .js and .css file which can be downloaded at jQuery Text Resize Plugin

Call the plugin on any element, and pass any of the available options listed below with their corresponding default values:

Plugin Options
smallsize:’10’ Minimum font size in pixels.
bigsize:’36’ Maximum font size in pixels.
target:’body’ Target element whose font-size will be changed.
controlcontainer:’body’ Container element for the + and controls. Controls are appended to controlcontainer.
$(function(){ 	
    $('body').textResize({
         smallsize:'12',
         bigsize:'36',
         target:'#lipsum',
         controlcontainer:'#sizeControls'
    }); 		
});

Check out the demo! or Download jQuery Text Resize Plugin

Tags: , , , ,

Categorised in: , ,

This post was written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *