big-text.js
Advanced tools
Comparing version 0.1.0 to 1.0.0
{ | ||
"name": "big-text.js", | ||
"version": "0.1.0", | ||
"description": "A JavaScript lib that makes text as big as possible while still fitting on the parent element. Based on DanielHoffmann/jquery-bigtext.", | ||
"version": "1.0.0", | ||
"description": "A JavaScript lib that makes text as big as possible while still fitting on the parent element.", | ||
"main": "big-text.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -1,34 +0,14 @@ | ||
big-text.js | ||
============== | ||
# big-text.js | ||
A JavaScript lib that makes text as big as possible while still fitting on the parent element. Based on DanielHoffmann/jquery-bigtext. | ||
Browser Compatibility | ||
============== | ||
- Internet Explorer 9 or higher (might work on older versions) | ||
- Opera | ||
- Firefox | ||
- Google Chrome | ||
- Safari | ||
## Installation | ||
Examples | ||
============== | ||
npm install --save big-text.js | ||
```html | ||
<div style="width: 300px, height: 200px"> | ||
<span id="span">BigText</span> | ||
</div> | ||
``` | ||
## Usage | ||
```javascript | ||
BigText("#span"); | ||
``` | ||
import BigText from 'big-text.js'; | ||
With one simple line the text "BigText" will now have its font-size increased but without overflowing the element parent div. | ||
See more examples in https://brorlandi.github.io/big-text.js/ | ||
Usage | ||
============== | ||
```javascript | ||
BigText("#span",{ | ||
@@ -46,4 +26,4 @@ rotateText: {Number}, (null) | ||
Options | ||
============== | ||
## Options | ||
**rotateText**: Rotates the text inside the element by X degrees. | ||
@@ -65,4 +45,26 @@ | ||
License | ||
============== | ||
## Examples | ||
```html | ||
<div style="width: 300px, height: 200px"> | ||
<span id="span">BigText</span> | ||
</div> | ||
``` | ||
```javascript | ||
BigText("#span"); | ||
``` | ||
With one simple line the text "BigText" will now have its font-size increased but without overflowing the element parent div. | ||
See more examples in https://brorlandi.github.io/big-text.js/ | ||
## Browser Compatibility | ||
- Internet Explorer 9 or higher (might work on older versions) | ||
- Opera | ||
- Firefox | ||
- Google Chrome | ||
- Safari | ||
## License | ||
This project is released under the MIT license. |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
69
13924