Skip to content

A jQuery plugin for fitting text exactly to its container

Notifications You must be signed in to change notification settings

codesolutions/squishy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Squishy.js

by Chris Sauvé of pxldot

Squishy is a jQuery plugin that automatically resizes text to exactly fit the container with no extra work on your part.

You can pass the script a number of options to restrict the squishiness. maxSize is used to set the maximum font size, minSize is used to set the minimum font size, maxWidth sets the maximum width of the line of text, and minWidth, the minimum (all in pixels, for now).

Much thanks to the guys at Paravel for their work on FitText, on which this script is largely based. This plugin only works for a single line; if you are looking for multiline text fitting, I recommend SlabText.

You can view a demo on the project page for this plugin.

About

A jQuery plugin for fitting text exactly to its container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%