<a href="http://lab.hakim.se"><div></div></a>
<a href="http://lab.hakim.se"><div></div></a>
body {
  background: #222;
  text-align: center;
}

a {
  display: inline-block;
  position: relative;
  width: 200px;
  height: 200px;
  margin: 40px 20px;
  background: url('https://s3.amazonaws.com/hakim-static/shared/grey-wall-pattern-127x127.png') repeat -27px -27px;
  
  box-shadow: 0 4px 6px #111;
}

a>div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid rgba(255,255,255,0.8);
  transition: border 0.2s ease;
}

a:hover>div {
  border-width: 12px;
}

a:nth-child(2),
a:nth-child(2)>div {
  border-radius: 50%;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.