<div class="cardfan"><img src="https://img-fotki.yandex.ru/get/5706/nata-komiati.a9/0_5f72a_68382310_GIFL.gif" alt="" /> <img src="https://lh4.googleusercontent.com/-VfLErbvbRnI/Uv3cThM4GPI/AAAAAAAAAtQ/dYkiW8imO6g/w500-h260-no/2.gif" alt="" /> <img src="http://images01.rememes.com/images/2013/07/279eda80-f078-11e2-9a4a-7054d21a8f10.gif" alt="" /></div>
<style type="text/css"><!--
div.cardfan {
height: 356px;
width: 700px;
margin: 2rem auto 0;
position: relative;
}
div.cardfan img {
position: absolute;
left: 140px;
width: 220px;
height: 200px;
border: 2px solid #fff;
border-radius: 1em;
box-shadow: 3px 2px 6px #000000;
transform-origin: center 400px;
transition: all .6s linear;
}
div.cardfan img:first-child { transform: rotate(5deg); } div.cardfan img:last-child {
transform: rotate(-5deg);
}
div.cardfan:hover img:first-child {
transform: rotate(25deg);
}
div.cardfan:hover img:last-child {
transform: rotate(-25deg);
}
body{ background-color: #f4f4f4;
}
--></style>