Rach_filmshed Posted November 26 Posted November 26 Site URL: https://giraffe-tuna-mkef.squarespace.com/config/pages/website-tools/custom-css Heya. I have added the code below to enable text overlay to my gallery. However I was hoping to split the text into Titles and subtext, subtext 2. Can you help amend the code below to enable this. .gallery-grid-item { position: relative; } .gallery-caption.gallery-caption-grid-simple { position: absolute; top: 50%; transform: translateY(-50%); text-align: center; opacity: 0; transition: opacity 0.5s ease; color: #fff; pointer-events:none; } .gallery-grid-item:hover .gallery-caption-grid-simple{ opacity: 1; } .gallery-grid-item .gallery-grid-item-wrapper:after { content: ''; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: block; position: absolute; top:0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; } .gallery-grid-item:hover .gallery-grid-item-wrapper:after { opacity: 1; } .gallery-caption.gallery-caption-grid-simple h3 { color: white; } CHEERS RACHEL
tuanphan Posted November 28 Posted November 28 Use this syntax when you enter caption Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment