Skip to content

Tusso4/rainbowbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

rainbowbox



Install

· Put rainbowbox.js in your js folder.

· Put this line <script src="/folder/rainbowbox.js" async></script>


How to Use


rainbowbox(ELEMENT, { OPTIONS });

Example



<div id="rainbowbox" style="width: 120px; height: 120px"></div>

<script>
var final_points = [
	[175, 77, 172],
	[50, 125, 189],
	[60, 146, 82],
	[237, 183, 18]
];

rainbowbox($("#rainbowbox"), {

	to: final_points,
	from: [0,0,0],
	animated: true,
	velocity: 15

});
</script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published