Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wcoder/text-colorizer.js
Script to format the text in the text with a random color and size (words or letters).
https://github.com/wcoder/text-colorizer.js
pure-javascript text
Last synced: about 7 hours ago
JSON representation
Script to format the text in the text with a random color and size (words or letters).
- Host: GitHub
- URL: https://github.com/wcoder/text-colorizer.js
- Owner: wcoder
- License: mit
- Created: 2015-07-03T19:25:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-29T13:55:43.000Z (about 7 years ago)
- Last Synced: 2024-10-09T09:21:35.483Z (about 1 month ago)
- Topics: pure-javascript, text
- Language: JavaScript
- Homepage: https://wcoder.github.io/text-colorizer.js/
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# text-colorizer.js
Script to format the text in the text with a random color and size (words or letters).
### Using
```html
(function () {
var element = document.querySelector('#text-colorize-word');
textColorizer(element, true);}());
```
### API
```js
textColorizer(domElement, [isByWord, maxFontSize, minFontSize]);
```### Screenshot
![screenshot](./demo/screenshot.png)---
© 2015 Yauheni Pakala | MIT