JavaScript Plugin To Colorize Letters, Words And Lines – ColorDivideJS

Category: Color , Javascript , Text | March 15, 2016
Author: Geocld
Views Total: 807
Official Page: Go to website
Last Update: March 15, 2016
License: MIT

Preview:

JavaScript Plugin To Colorize Letters, Words And Lines – ColorDivideJS

Description:

ColorDivideJS is a native JavaScript library that applies different colors to letters, words and even lines. Similar to the jQuery Lettering.js plugin.

How to use it:

To use this JavaScript library just include the ColorDivide.js on the webpage and we’re ready to go.

<script src="ColorDivide.js"></script>

Apply random colors to each letters within a sentence.

<div id="demo1" class="demo">
  <h1>ColorDivide</h1>
</div>
ColorDivide.listen('#demo1');

Split words.

<div id="demo2" class="demo">
  <h1>This is ColorDivide</h1>
</div>
ColorDivide.config({splitter: 'word'}).listen('#demo2');

Split lines.

<div id="demo3">
  <p>This is an amazing<br>
  Revolution in Typography.<br>
  The possibilities are endless:<br>
  Coloring, Vertical spacing, and Kerning.<br></p> 
</div>
ColorDivide.config({splitter: 'line'}).listen('#demo3');