JSFiddle - React, Tailwind, and code Playground
HTML
<a href="/playera">
<img src="http://www.magazine.ayurvediccure.com/wp-content/uploads/2008/08/apple.jpg">
<span>100€</span>
</a>
CSS
a {
position: relative;
display: block;
width: 300px;
overflow: hidden; /* para ocultar el precio */
/* Con fines decorativos */
border: 1px solid black;
margin: 20px;
}
span {
position: absolute;
top: 0;
left: -80px; /* Margen negativo = ancho */
display: block;
width: 80px;
-webkit-transition: left .5s ease;
-moz-transition: left .5s ease;
-o-transition: left .5s ease;
transition: left .5s ease;
/* Con fines decorativos */
box-sizing: border-box;
padding: 10px;
background: darkgreen;
color: white;
text-align: center;
border-bottom-right-radius: 10px;
}
a:hover span {
left: 0;
}