JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test"></div>
CSS
#test {
border-radius: 15px;
width: 600px;
height: 200px;
box-shadow: 0px 0px 10px black;
background: green -moz-linear-gradient(left,
rgba(255, 255, 0, 0) 0%,
rgba(255, 0, 0, 0.5) 60%
);
background: green -webkit-linear-gradient(left,
rgba(255, 255, 0, 0) 0%,
rgba(255, 0, 0, 0.5) 60%
);
-moz-transition: all 2s;
-webkit-transition: all 2s;
-ms-transition: all 2s;
-o-transition: all 2s;
transition: all 2s;
}
#test:hover {
background: blue -moz-linear-gradient(left,
rgba(255, 255, 0, 0) 0%,
rgba(255, 0, 0, 0.5) 60%
);
background: blue -webkit-linear-gradient(left,
rgba(255, 255, 0, 0) 0%,
rgba(255, 0, 0, 0.5) 60%
);
}