0.1.0 • Published 9 years ago
colorful-it v0.1.0
ColorfulIt
Add colorful chars to element.
Inspired by the banner at http://substack.net/.
install
With NPM:
npm install colorful-it
usage
Require
it:
var ColorfulIt = require('colorful-it');
ColorfulIt(document.getElementById('colorfulCharsContainer'), 'Hello, world!');
Or use the global var:
ColorfulIt(document.getElementById('colorfulCharsContainer'), 'Hello, world!');
Or use as jQuery plugin (if you import jQuery before):
$('#colorfulCharsContainer').ColorfulIt('Hello, world!');
api
ColorfulIt(ele, str, options)
options:
ColorfulIt.prototype
- run() - after stoped, use it to restart changing color
- stop() - stop changing color
test
npm install
npm test
0.1.0
9 years ago