https://github.com/tiaanduplessis/fittxt
Modernized FitText.js
https://github.com/tiaanduplessis/fittxt
fittext text textfit
Last synced: 10 months ago
JSON representation
Modernized FitText.js
- Host: GitHub
- URL: https://github.com/tiaanduplessis/fittxt
- Owner: tiaanduplessis
- Created: 2018-07-18T04:09:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:44:06.000Z (almost 7 years ago)
- Last Synced: 2025-07-03T17:09:16.459Z (11 months ago)
- Topics: fittext, text, textfit
- Language: JavaScript
- Size: 54.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fittxt
[](https://npmjs.org/package/fittxt)
[](https://npmjs.org/package/fittxt)
[](https://github.com/RichardLitt/standard-readme)
[](https://npmjs.org/package/fittxt)
[](http://makeapullrequest.com)
> Modernized [FitText.js](https://github.com/adactio/FitText.js)
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#License)
## Install
This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).
```sh
$ npm install fittxt
$ # OR
$ yarn add fittxt
```
## Usage
```js
import fittxt from 'fittxt'
fittxt('.test', {
factor: 6,
min: 50,
max: 600,
throttleTime: 500
})
fittxt(['.test', '.foop'])
fittxt(document.querySelector('.test'))
```
## Contribute
1. Fork it and create your feature branch: git checkout -b my-new-feature
2. Commit your changes: git commit -am 'Add some feature'
3. Push to the branch: git push origin my-new-feature
4. Submit a pull request
## License
MIT