JSFiddle - React, Tailwind, and code Playground

by vcsjones

HTML

<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.0.1/raphael-min.js"></script>
<div id="draw-here-raphael" style="height: 400px; width: 400px; background: #666; z-index:0;">
</div>

JavaScript

$(function() {
    var r = new Raphael("draw-here-raphael");
    var rec8 = r.rect(90, 240, 50, 40, 5).attr({"fill": "blue"});
    var rect8glow;
    rec8.mouseover(function(e) {
        rect8glow = this.glow({width:10});
        });
    rec8.mouseout(function(e) {
        rect8glow.remove();
    }); 
});