Skip to content

Script to format the text in the text with a random color and size (words or letters).

License

Notifications You must be signed in to change notification settings

wcoder/text-colorizer.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text-colorizer.js

Script to format the text in the text with a random color and size (words or letters).

Using

<script src="path/to/text-colorizer.js"></script>
<script>
(function () {
		
    var element = document.querySelector('#text-colorize-word');
    textColorizer(element, true);

}());
</script>

API

textColorizer(domElement, [isByWord, maxFontSize, minFontSize]);

Screenshot

screenshot


© 2015 Yauheni Pakala | MIT

About

Script to format the text in the text with a random color and size (words or letters).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published