Created
July 17, 2022 09:41
-
-
Save wpt00ls/424a6cdb15a6162e2f1122e9c3181a0b to your computer and use it in GitHub Desktop.
Show Title and Description On Masonry Image Gallery Item Hover
This file contains 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
.masonry-grid-item h4.item-title, .masonry-grid-item .item-description { | |
display:none; | |
position: absolute; | |
} | |
html .masonry-grid-item:hover h4.item-title { | |
display:block; | |
top: 30%; | |
color: white; | |
width: 100%; | |
font-weight: 800; | |
line-height:10px; | |
padding: 0 20px !important; | |
} | |
html .masonry-grid-item:hover .item-description{ | |
display:block; | |
top: 45%; | |
color: white; | |
width: 100%; | |
font-weight: 800; | |
padding: 0 20px !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment