Recommend this page to a friend! |
Classes of Emmanuel Podvin | iFSM Animation | extlib/FitText/README.md | Download |
|
|
![]() FitText.js, a jQuery plugin for inflating web typeFitText makes font-sizes flexible. Use this plugin on your responsive design for ratio-based resizing of your headlines. How it worksHere is a simple FitText setup:
Your text should now fluidly resize, by default: Font-size = 1/10th of the element's width. The CompressorIf your text is resizing poorly, you'll want to turn tweak up/down "The Compressor". It works a little like a guitar amp. The default is
This will hopefully give you a level of "control" that might not be pixel perfect, but resizes smoothly & nicely. minFontSize & maxFontSizeFitText now allows you to specify two optional pixel values:
CSS FAQ
Don't use jQuery?That's okay. Check out these handy non-jQuery versions maintained by other people.
Changelog
In Use:If you want more exact fitting text, there are plugins for that! We recommend checking out BigText by Zach Leatherman or SlabText by Brian McAllister. Download, Fork, Commit.If you think you can make this better, please Download, Fork, & Commit. We'd love to see your ideas. |