EmilyLewis Posted September 20, 2023 Posted September 20, 2023 Hey, I need help making the blog post title appear when hovering over the image, rather than it being underneath the image. The blog is using the masonry blog layout. For context, this is the projects page but I made it using the Blog. https://momentumcardiff.squarespace.com/projects Password: aXWoryOnAloA Thank you in advance! Emily Lewis Founder of TwoFold Squarespace websites for interior designers and architects twofold-studios.com
tuanphan Posted September 22, 2023 Posted September 22, 2023 Hi, I see you already figured it out? 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!)
Solution EmilyLewis Posted September 22, 2023 Author Solution Posted September 22, 2023 7 hours ago, tuanphan said: Hi, I see you already figured it out? Hey, yes I played around with it for a few hours. This is what I've managed to do in the end, but let me know if there would have been a more efficient CSS to get the same results. //Project overlay - desktop only// @media screen and (min-width: 640px){ //Hover background colour overlay on image// .blog-image-wrapper { background-color: #46363c; } .hentry:hover .image-wrapper { opacity: 0.5; } //Hover text overlay on image// .blog-item-summary { opacity: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } .hentry:hover .blog-item-summary { opacity: 1; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } .hentry:hover .blog-title { color: #FFFFFF; } //Hover read more link text and underline change// .hentry:hover .blog-more-link { color: #FFFFFF; } .hentry:hover .blog-more-link:before { border-bottom: 1px solid #ffffff } } Emily Lewis Founder of TwoFold Squarespace websites for interior designers and architects twofold-studios.com
tuanphan Posted September 25, 2023 Posted September 25, 2023 I also have another code, but I see the two codes are only slightly different, so if your code already works, you don't need to look for another code. 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!)
EmilyLewis Posted October 5, 2023 Author Posted October 5, 2023 On 9/25/2023 at 3:47 PM, tuanphan said: I also have another code, but I see the two codes are only slightly different, so if your code already works, you don't need to look for another code. Fab, yeah it's working. Thanks for checking! tuanphan 1 Emily Lewis Founder of TwoFold Squarespace websites for interior designers and architects twofold-studios.com
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment