Skip to content

ahl389/rainbowify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rainbowify

Turn all your HTML text into rainbows 🌈

Install

Download the script and drop a link at the bottom of your HTML file.

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

In your HTML, add the class rainbow to any element whose contents you want to be rendered in rainbow when the script executes. This script won't change the actual contents of your HTML file.

That's it! Want to use colors that differ from the default?

Add some config info:

rainbow.config({
	colors: [<your hex code here>, <your hex code here>, <your hex code here>, <your hex code here>]
});

There's no limit on the number of colors you can add to the array. Must use hex codes.

Releases

No releases published

Packages

No packages published