Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created February 13, 2016 17:36
Show Gist options
  • Save ericakfranz/44fc1f1cd99bbcb05971 to your computer and use it in GitHub Desktop.
Save ericakfranz/44fc1f1cd99bbcb05971 to your computer and use it in GitHub Desktop.
Show caption on hover with transition effect.
/* Hide Caption, Add Transitions */
.envira-gallery-item-inner .caption {
opacity: 0;
-webkit-transition: opacity 0.5s ease;
-moz-transition: opacity 0.5s ease;
-o-transition: opacity 0.5s ease;
transition: opacity 0.5s ease;
}
/* Show Caption when hovering over gallery image */
.envira-gallery-item-inner:hover .caption { opacity: 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment