JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
</div>
CSS
#container{
background-image: -webkit-linear-gradient(-35deg, #35a28e, #a8e4a5);
background-image: linear-gradient(125deg, #35a28e, #a8e4a5);
background-color: #6fc39a;
height:200px;
}
JavaScript
$("#container").mousemove(function(e){
var x = e.pageX - this.offsetLeft;
var y = e.pageY - this.offsetTop;
$(this).html("X: " + x + " Y: " + y);
});