jxnblk/fitter-happier-text
jxnblk/fitter-happier-text has 1,308 GitHub stars and 46 forks. GitHot measured -1 stars in 24 hours and -1 in 7 days. Last checked 2026-11-12 00:40 UTC. Last push 2018-08-25.
Performant, fully fluid headings
Measured star growth
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFitter Happier Text
Performant, fully fluid headings
Usage
Include dist/fitter-happier-text.js in your project or install from NPM:
npm install fitter-happier-text
(or download it https://github.com/jxnblk/fitter-happier-text/archive/0.0.1.zip)
Pass it a nodelist.
var nodes = document.querySelectorAll('[data-fitter-happier-text]');
fitterHappierText(nodes);
Fitter Happier Text replaces each node with an SVG text node and sets the viewBox attribute based on its width and height.
To adjust for different fonts, use the baseline and paddingY options. paddingY can be set to a negative value to reduce the height of the SVG container.
fitterHappierText(nodes, { baseline: 14, paddingY: 2 });
Browser support:
Please note: I do not plan on adding any SVG polyfills to handle old browsers.
MIT License
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,879 starspublic-apis/public-apis
A collective list of free APIs
498,248 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
452,742 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,368 stars