JSFiddle - React, Tailwind, and code Playground
by TheNephilim
HTML
<div class="image" onclick="$(this).css({ background: 'transparent url(http://jsfiddle.net/img/modal/close.png) no-repeat 0 0' });"></div>
CSS
body {
background-color: #ccc;
}
.image {
width: 16px;
height: 16px;
background: transparent url(http://jsfiddle.net/img/logo.png) no-repeat 0 0;
cursor: pointer;
}