JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<div></div>
<p></p>
CSS
body {
width: 100%;
height: 100%;
background: #EFEFEF;
}
div {
background: -webkit-radial-gradient(center center, farthest-side, #B70000, #B70000 40%, #959595 95%);
box-shadow: 0 0 5px rgba(0, 0, 0, .4);
height: 15px;
width: 50px;
border-radius: 10px;
}
.glow {
background: -webkit-radial-gradient(center center, farthest-side, #FF1515, #B70000 95%);
box-shadow: 0 0 8px rgba(255, 0, 0, .5);
}
JavaScript
(function (){
var i =0;
$(document).mousemove(function() {
// 'body' doesn't work instead of document
i += 1;
$('p').text(function() {
return 'Moved: ' + i;
});
$('div').addClass('glow');
});
})();