Inner Border on Image
Circular image with inner border, that changes on hover.
by Jon Fuller
HTML
<a href="#" class="image-border">
<img src="http://s3-media3.fl.yelpcdn.com/bphoto/IVbA3NzE7Q6OPUiUT0ku8Q/ls.jpg">
</a>
CSS
a.image-border {
position:relative;
display: inline-block;
overflow: hidden;
}
a.image-border::after {
content: "";
position: absolute;
height: 200px;
width: 200px;
border-radius: 50%;
box-shadow: inset 0 0 0 10px rgba(255,0,0,0.25);
top: 0;
left: 0;
z-index: 1;
transition: all 0.5s ease;
}
a.image-border img {
display:block;
border-radius: 50%;
height: 200px;
width: 200px;
transition: all 0.5s ease;
}
a.image-border:hover::after {
box-shadow: inset 0 0 0 20px rgba(0,0,255,0.25);
}
a.image-border:hover img {
transform: rotate(-5deg);
}