jQuery Text Resize Plugin ** UPDATED!
December 7, 2015 2:47 pm Leave your thoughtsSo I’ve updated my second jQuery plugin.
Updates include
- re-styled the controls
- made textResize into a function, now you just need to call it instead of attaching it to an element.
Check out the demo! or Download jQuery Text Resize Plugin
Simply add the .js and .css file which can be downloaded at here
Call the function, and pass any of the available options listed below with their corresponding default values:
Plugin Options | |
minSize:’10’ | Minimum font size in pixels. |
maxSize:’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(){ textResize({ minSize:'10', maxSize:'36', controlContainer:'#sizeControls', target:'#lipsum' }); });
Check out the demo! or Download jQuery Text Resize Plugin
Tags: css, html5, jQuery, jquery pluginCategorised in: CSS, html5, jQuery
This post was written by admin