Ideas
Image hover states
by Joshua Powell
HTML
<header class="body">
<div>
<span><p>Click to view more images!</p></span>
</div>
</header>
CSS
.body {
width: 100%;
height: 404px;
background: #1b1b1b;
}
div {
width: 405px;
height: 400px;
background: url(http://www.gabriela-biechl.at/images/pias%20aura-100x100-2004-sold.jpg);
border-radius: 50%;
overflow: hidden;
border: 2px solid rgba(0, 0, 0, 0.7);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7) inset;
margin: 0 auto;
cursor: pointer;
}
div:hover span {
opacity: 1;
display: block;
}
span:hover p {
display: block;
}
span {
width: 405px;
height: 400px;
background: rgba(0, 0, 0, 0.7);
color: #fff;
line-height: 400px;
font-size: 35px;
text-align: center;
opacity: 0;
-webkit-transition: all .3s ease-in;
-moz-transition: all .3s ease-in;
-ms-transition: all .3s ease-in;
-o-transition: all .3s ease-in;
}
p {
margin: 0;
padding: 0;
display: none;
}