JSFiddle - React, Tailwind, and code Playground

by dominic_p

HTML

<script src="https://gist.github.com/raw/4569265/d82559018200a8714eb5e6a93e87a6ca87dbaee6/jquery.colorfade.js"></script>
<div id="test"></div>
<a id="launch-fade" href="javascript:void(0)">Fade color!</a>

CSS

#test {
    width: 200px;
    height: 200px;
    border: solid 1px gray;
    background-color: maroon;
    margin-bottom: 10px;
}

JavaScript

$( '#launch-fade' ).click(function() {
	
    $( '#test' ).colorFade( [100,0,255] );
});