lemonmade / squishy Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin for fitting text exactly to its container.
A jQuery plugin for fitting text exactly to its container.
Hi There - thanks for the great plugin!
Is there anyway of optionally disabling the internal resize event? That way we can add our own resize event so that we can add our own logic in such as only running between certain screen widths etc.
Thanks again!
Hi! - Been using the plugin for a few weeks now and it's been great - thanks!
One thing I have noticed is that it doesn't seem to take into account negative letter spacing. So if I set a negative letter spacing it adds a font size like its not there which is then too large for the width of the space.
Does that make sense? Is this something that is fixable? At the moment, I'm just turning off letter spacing when using squishy.
Cheers
Hi there... No rush on this at all but a destroy method would be great. At the moment I'm adding
$('myselectors').removeAttr("style");
Which is great but if there was a squishy.destroy(); that saves me saving my selectors in a variable or repeating them.
Thanks (and thanks again for the optional resize!!)
I'm trying out squishy for the first time. I think it's going to be just what I need! First time I tried to apply it to a site, the fonts with the squishy class got gigantic on resize. I narrowed it down to my reset css. More specifically, the span element. If I remove span from my reset, it works beautifully. Zeroing more closely it seems assigning a font size to the span element triggers this behavior (which the reset does).
You can see this if you edit the test.html in the squishy download and add
span {font-size: 14px}
to the stylesheet.
I can live with this but I thought I'd mention it, in case you had any thoughts
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.