mdemartin Posted October 21, 2020 Posted October 21, 2020 Site URL: http://designsite.com Hi - the following code is supposed to provided a color hover-over effect to Poster image cards. Unfortunately, it works for all image cards. Would anyone know how to update this code so it only applies to Poster image cards? Thanks in advance. Also, not that the URL does not have an example - Sqsp required one to write this post. // Gradient Overlay on Poster Image // .image-block-v2:before { content: ""; width: 100%; height: 100%; position: absolute; z-index: 1; top: 0; left: 0; opacity: 0; } .image-block-v2:hover:before { background: -webkit-linear-gradient(to top, #F07C63, #E45372); background: linear-gradient(to top, #F07C63, #E45372); opacity: .55; transition: all .5s ease-in-out; }
tuanphan Posted October 23, 2020 Posted October 23, 2020 Can you share link to page where you use poster? We can check easier 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!)
simkrys Posted December 29, 2020 Posted December 29, 2020 I have the same question. I used an image poster to create a stylised text block to click through to different pages. Wondering how to create a hover effect on the posters. https://www.wincservices.com/ Under "explore our services"
Beyondspace Posted December 30, 2020 Posted December 30, 2020 11 hours ago, simkrys said: I have the same question. I used an image poster to create a stylised text block to click through to different pages. Wondering how to create a hover effect on the posters. https://www.wincservices.com/ Under "explore our services" Hi, mdemartin Please follow this answer too Add this to Design-.Custom CSS .design-layout-poster.image-block-v2:before { content: ""; width: 100%; height: 100%; position: absolute; z-index: 1; top: 0; left: 0; opacity: 0; } .design-layout-poster.image-block-v2:hover:before { background: -webkit-linear-gradient(to top, #F07C63, #E45372); background: linear-gradient(to top, #F07C63, #E45372); opacity: .55; transition: all .5s ease-in-out; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
simkrys Posted January 6, 2021 Posted January 6, 2021 Hi @bangank36 thanks for the reply. Now the issue is the image block is no longer clickable. The box originally links to a different page in the website.
Beyondspace Posted January 6, 2021 Posted January 6, 2021 2 hours ago, simkrys said: Hi @bangank36 thanks for the reply. Now the issue is the image block is no longer clickable. The box originally links to a different page in the website. I see, will update the code BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Beyondspace Posted January 6, 2021 Posted January 6, 2021 3 hours ago, simkrys said: Hi @bangank36 thanks for the reply. Now the issue is the image block is no longer clickable. The box originally links to a different page in the website. updated .design-layout-poster.image-block-v2 a:before { content: ""; width: 100%; height: 100%; position: absolute; z-index: 1; top: 0; left: 0; opacity: 0; } .design-layout-poster.image-block-v2 a:hover:before { background: -webkit-linear-gradient(to top, #F07C63, #E45372); background: linear-gradient(to top, #F07C63, #E45372); opacity: .55; transition: all .5s ease-in-out; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
simkrys Posted January 6, 2021 Posted January 6, 2021 @bangank36 this worked perfectly!! thanks so much 🎉
Recommended Posts
Archived
This topic is now archived and is closed to further replies.