Skip to content

Instantly share code, notes, and snippets.

@NatalieMac
Created March 18, 2014 02:57
Show Gist options
  • Save NatalieMac/9612736 to your computer and use it in GitHub Desktop.
Save NatalieMac/9612736 to your computer and use it in GitHub Desktop.
.photo-grid figcaption p {
display: table-cell;
font-size: 1.5em;
position: relative;
top: -40px;
width: 289px;
-webkit-transition: all 300ms ease-out;
-moz-transition: all 300ms ease-out;
transition: all 300ms ease-out;
vertical-align: middle;
}
.photo-grid li:hover figcaption p {
-moz-transform: translateY(40px);
-webkit-transform: translateY(40px);
transform: translateY(40px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment