Circular images
by Daan Hai
HTML
<img src="http://bavotasan.com/wp-content/uploads/2011/02/desktop.jpg" />
<div id="black"></div>
CSS
#black {
background-color: #000000;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
width: 298px;
height: 298px;
position: fixed;
top: 0;
left: 1px;
z-index: 5;
}
img {
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
opacity: 1;
width: 300px;
height: 300px;
position: fixed;
top: 0;
left: 0;
z-index: 10;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
transition: all 1s ease-in-out;
}
img:hover {
opacity: 0.5;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
-ms-transform: rotate(1deg);
/* IE 9 */
-webkit-transform: rotate(1deg);
/* Chrome, Safari, Opera */
transform: rotate(1deg);
}