figure {
display: inline-block;
position: relative;
overflow: hidden;
margin: 0 auto; 
}


figcaption {
position: absolute;
background: rgba(255,255,255,0.50);
padding: 10px 40px;
opacity: 0;
-webkit-transition: all 0.6s ease;
-moz-transition:    all 0.6s ease;
-o-transition:      all 0.6s ease;}

figure:hover figcaption {opacity: 1;}

.cap-bot:before { bottom: 10px; left: 10px; }
.cap-bot figcaption { left: 0; bottom: -30%;}
.cap-bot:hover figcaption { bottom: 0; }



a.fig:link, a.fig:active, a.fig:visited {
color: #aaa;
background: #ddd;
margin: 2px;
padding-right: 5px;
padding: 6px;
font: 10px calibri;
text-align: center;
letter-spacing: 1px;
border-radius: 4px;
border-bottom: 3px solid #ccc;
border:1px;
}
 
 a.fig:hover {
text-align: center;
border-bottom: 3px solid #bbb;
  -webkit-animation-name: pulse;
  animation-name: pulse;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}