
HTML
<div id="containerEx8">
<div class="ex8"><img src="http://s017.radikal.ru/i415/1302/0c/f9bb31a13f18.jpg" alt="" width="190" height="220" /> <img src="http://phototive.com/uploads/297/19415/c9judcicsiwflklu.gif" alt="" width="190" height="220" /></div>
</div>
CSS
<style type="text/css"><!--
#containerEx8 {width: 800px;
margin: 0 auto;
}
.ex8 img {
margin: 20px;
border: 2px dotted #fff;
border-radius: 1em;
-webkit-box-shadow: 4px 4px 4px rgba(0,0,0,0.2);
-moz-box-shadow: 4px 4px 4px rgba(0,0,0,0.2);
box-shadow: 4px 4px 4px rgba(0,0,0,0.2);
-webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
}
.ex8 img:hover {
-webkit-transform: perspective(200px) rotateY(90deg); }
100% { opacity: 1; -webkit-transform: perspective(200px) rotateY(0deg); }
}
opacity: 0; -moz-transform: perspective(200px) rotateY(90deg); }
100% { opacity: 1; -moz-transform: perspective(200px) rotateY(0deg); }
}
opacity: 0; -o-transform: perspective(200px) rotateY(90deg); }
100% { opacity: 1; -o-transform: perspective(200px) rotateY(0deg); }
}
opacity: 0; transform: perspective(200px) rotateY(90deg); }
100% { opacity: 1; transform: perspective(200px) rotateY(0deg); }
}
--></style>