JSFiddle - React, Tailwind, and code Playground
HTML
<div class="gimp">
<div class="icon"></div>
</div>
CSS
body {
font-family: Verdana, Arial, sans-serif;
}
/* To Cię powinno interesować */
.icon {
background: url('http://img191.imageshack.us/img191/1351/gimph.png') 0 0 no-repeat;
width: 128px;
height: 128px;
margin: 10px;
display: block;
}
.icon:hover {
background-position: -128px 0;
}
/* A to już nie */
.gimp:after {content: '- Whazup nigga?'}
.gimp:hover:after {content: "- Say what?"}