JSFiddle - React, Tailwind, and code Playground
HTML
<div class="pic">
<a href="test.html">
<img src="http://www.muratoner.net/images/test.jpg" width="200px" height="200px" />
</a>
</div>
CSS
.pic{
float:left;
height: 200px;
width: 200px;
margin: 20px;
overflow: hidden;
border-radius: 10px;
-webkit-box-shadow: 0 0 10px rgba(0,0,0,.3);
box-shadow: 0 0 10px rgba(0,0,0,.3);
}
.pic>img{
height:200px;
width:200px;
-webkit-transition:all 1s ease;
-moz-transition:all 1s ease;
-o-transition:all 1s ease;
-ms-transition:all 1s ease;
transition:all 1s ease;
}
.pic>img:hover{
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-o-transform: rotate(-10deg);
-ms-transform: rotate(-10deg);
transform: rotate(-10deg)
}