Skip to content

tiaanduplessis/fittxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fittxt

package version package downloads standard-readme compliant package license make a pull request

Modernized FitText.js

Table of Contents

Install

This project uses node and npm.

$ npm install fittxt
$ # OR
$ yarn add fittxt

Usage

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