Created
February 13, 2016 17:36
-
-
Save ericakfranz/44fc1f1cd99bbcb05971 to your computer and use it in GitHub Desktop.
Show caption on hover with transition effect.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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