vue-responsive-text
Vue component that scales its child node in relation to its parent node's width
Installation
Install the package from npm by running
$ npm i --save vue-responsive-text
or
$ yarn add vue-responsive-text
Usage
Import the component as you would any other and place responsive text as the component's child.
this text will scale
Props
Prop | Type | Required | Default | Description |
---|---|---|---|---|
transition | number | false | 0 | Transition duration in ms |
Inspiration
This component was inspired by by @foisonocean's 'react-dynamic-font'.
Contributing
This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the issues. If you wish to work on this project:
- Fork the project
- Create your feature branch (
git checkout -b new-feature-branch
) - Commit your changes (
git commit -am 'add new feature'
) - Push to the branch (
git push origin new-feature-branch
) - Submit a pull request!