Modernized FitText.js
This project uses node and npm.
$ npm install fittxt
$ # OR
$ yarn add fittxt
import fittxt from 'fittxt'
fittxt('.test', {
factor: 6,
min: 50,
max: 600,
throttleTime: 500
})
fittxt(['.test', '.foop'])
fittxt(document.querySelector('.test'))
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
MIT