Blackbearsfire Posted October 21, 2022 Share Posted October 21, 2022 Hello! I'm looking to create an opacity hover effect on images that will include a clickthrough link. I'm not sure if this can be achieved in a grid, gallery, list or just individual images. I want the opacity of the images to fade when hovered over and be able to be linked to other pages when clicked. Thanks! Link to comment
Beyondspace Posted October 21, 2022 Share Posted October 21, 2022 7 minutes ago, Blackbearsfire said: Hello! I'm looking to create an opacity hover effect on images that will include a clickthrough link. I'm not sure if this can be achieved in a grid, gallery, list or just individual images. I want the opacity of the images to fade when hovered over and be able to be linked to other pages when clicked. Thanks! Can you share your site Url and protected password (if you have) so I can take a look? Blackbearsfire 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Blackbearsfire Posted October 21, 2022 Author Share Posted October 21, 2022 27 minutes ago, bangank36 said: Can you share your site Url and protected password (if you have) so I can take a look? I was just playing around with templates in 7.1 to see if this could be accomplished, so I don't have the site yet. I wanted to see if this could theoretically be achieved first. Link to comment
Ziggy Posted October 21, 2022 Share Posted October 21, 2022 You can add a hover effect to any block in CSS, and set an opacity. You would just need the block ID if you wanted to target one individual block, or a class if you want to target all image blocks on a page or more. hwa630 and Blackbearsfire 2 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Blackbearsfire Posted October 21, 2022 Author Share Posted October 21, 2022 2 minutes ago, Ziggy said: You can add a hover effect to any block in CSS, and set an opacity. You would just need the block ID if you wanted to target one individual block, or a class if you want to target all image blocks on a page or more. Can you point me to a code snippet I could try in the custom CSS? Link to comment
Ziggy Posted October 21, 2022 Share Posted October 21, 2022 (edited) This will make images have an opacity of 60% and 90% when hovered on. Place in Custom CSS under the Design dashboard option. .sqs-block-image img { opacity:0.6 transition:ease-in-out 300ms; &:hover { opacity:0.9; } } You can replace .sqs-block-image img with anything you want, block IDs list sections, gallery images etc. Edited October 21, 2022 by Ziggy Blackbearsfire and hwa630 2 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Ziggy Posted October 21, 2022 Share Posted October 21, 2022 It is probably worth saying that CSS can have impacts across your website, and you should be careful to understand what you're adding before doing it, or employ someone who does know to avoid a potentially broken website. Blackbearsfire 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Blackbearsfire Posted October 21, 2022 Author Share Posted October 21, 2022 17 minutes ago, Ziggy said: It is probably worth saying that CSS can have impacts across your website, and you should be careful to understand what you're adding before doing it, or employ someone who does know to avoid a potentially broken website. Thank you, much appreciated! Link to comment
Ziggy Posted October 21, 2022 Share Posted October 21, 2022 Not a problem, good luck with any tweaks you make. Blackbearsfire 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Blackbearsfire Posted October 21, 2022 Author Share Posted October 21, 2022 23 minutes ago, Ziggy said: This will make images have an opacity of 60% and 90% when hovered on. Place in Custom CSS under the Design dashboard option. .sqs-block-image img { opacity:0.6 transition:ease-in-out 300ms; &:hover { opacity:0.9; } } You can replace .sqs-block-image img with anything you want, block IDs list sections, gallery images etc. Placing this as is gives me a Syntax Error on line 2. Am I missing something? Link to comment
Solution Ziggy Posted October 21, 2022 Solution Share Posted October 21, 2022 Nope, that was me missing something: .sqs-block-image img { opacity:0.6; transition:ease-in-out 300ms; &:hover { opacity:0.9; } } I deleted a semicolon, just to demonstrate how easy it is to have mistakes in code.....or maybe just by accident! hwa630 and Blackbearsfire 1 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Blackbearsfire Posted October 21, 2022 Author Share Posted October 21, 2022 7 minutes ago, Ziggy said: Nope, that was me missing something: .sqs-block-image img { opacity:0.6; transition:ease-in-out 300ms; &:hover { opacity:0.9; } } I deleted a semicolon, just to demonstrate how easy it is to have mistakes in code.....or maybe just by accident! Ha ha awesome. Thanks!! Link to comment
Blackbearsfire Posted November 3, 2022 Author Share Posted November 3, 2022 On 10/21/2022 at 9:18 AM, Ziggy said: Nope, that was me missing something: .sqs-block-image img { opacity:0.6; transition:ease-in-out 300ms; &:hover { opacity:0.9; } } I deleted a semicolon, just to demonstrate how easy it is to have mistakes in code.....or maybe just by accident! Is there a list of class IDs to target different types of images? Link to comment
Ziggy Posted November 3, 2022 Share Posted November 3, 2022 7 hours ago, Blackbearsfire said: Is there a list of class IDs to target different types of images? You can find guides like this that can be helpful: https://insidethesquare.co/css Different image types have different classes, and every individual block has it's own ID which you can find either by inspecting the code or using a Chrome extension. https://squarefortytwo.com/squarespace-guides/find-an-id-in-squarespace-71 hwa630 and Blackbearsfire 2 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Blackbearsfire Posted December 8, 2022 Author Share Posted December 8, 2022 (edited) On 10/21/2022 at 9:18 AM, Ziggy said: Nope, that was me missing something: .sqs-block-image img { opacity:0.6; transition:ease-in-out 300ms; &:hover { opacity:0.9; } } I deleted a semicolon, just to demonstrate how easy it is to have mistakes in code.....or maybe just by accident! Last time I tried this code it worked but today I'm not having any luck. Any ideas? @Ziggy Edited December 8, 2022 by Blackbearsfire Link to comment
Ziggy Posted December 8, 2022 Share Posted December 8, 2022 How and where are you trying to use it? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Blackbearsfire Posted December 9, 2022 Author Share Posted December 9, 2022 I was trying to use it the same as before on an image block in 7.1 When you first posted the code I tried it and it worked. This time I tried it the image fades but nothing happens when I hover over it. I also tried it in a Fluid Engine page but that didn't work. Link to comment
Ziggy Posted December 9, 2022 Share Posted December 9, 2022 Very odd, it simply works in my testing. Have you placed this at the bottom of the Custom CSS? Might there be some conflicting code in the CSS? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
sophdooley Posted November 13, 2023 Share Posted November 13, 2023 Hi, this worked on my website, but the hover effect only shows when I am on editing mode. When I click preview, the image that is supposed to be hidden unless it's been hovered over is showing as static. am i doing something incorrectly? Link to comment
tuanphan Posted November 18, 2023 Share Posted November 18, 2023 On 11/13/2023 at 7:05 AM, sophdooley said: Hi, this worked on my website, but the hover effect only shows when I am on editing mode. When I click preview, the image that is supposed to be hidden unless it's been hovered over is showing as static. am i doing something incorrectly? Can you share link to page where you have problem? 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!) Link to comment
sophdooley Posted November 18, 2023 Share Posted November 18, 2023 Hi, I managed to fix the hovering problem. It turns out that I needed to turn off "Animations" so that it works. But now it seems like I cannot add a hyperlink to the textbox. I wanted the user to hover over it and make it clickable to take them to a particular gallery. Here is the website link: 70-50design.ca/ongoing-projects The password: 1234 Thank you! Link to comment
tuanphan Posted November 20, 2023 Share Posted November 20, 2023 On 11/19/2023 at 1:06 AM, sophdooley said: Hi, I managed to fix the hovering problem. It turns out that I needed to turn off "Animations" so that it works. But now it seems like I cannot add a hyperlink to the textbox. I wanted the user to hover over it and make it clickable to take them to a particular gallery. Here is the website link: 70-50design.ca/ongoing-projects The password: 1234 Thank you! Try adding to Custom CSS box @media screen and (min-width: 768px) { #block-yui_3_17_2_1_1697400011904_19353 *, #block-0621c99dd9acef85aed1 *, #block-4b94192b9870dd1aa56e * { height: 100%; } #block-yui_3_17_2_1_1697400011904_19353 a, #block-0621c99dd9acef85aed1 a, #block-4b94192b9870dd1aa56e a { position: absolute; width: 100%; height: 100%; left: 0; top: 0; display: flex !important; justify-content: center; align-items: center; background-image: unset } .fe-652c5bc10b2e0d39da9686d4 span.sqsrte-text-color--custom { display: inline-block; height: fit-content !important; }} 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!) Link to comment
ArcherDougherty Posted March 27 Share Posted March 27 (edited) Hello, I'm trying to accomplish the same thing - I have a strip gallery block on my home page, called PROJECTS, and each image is specifically meant to be a click through link, and I'd like an opacity change on hover to indicate the click through capability. None of the code on this site has worked, nor has turning off animations or lightbox, etc. My website is still in trial, it is https://cobalt-mustard-hn3a.squarespace.com Edited March 27 by ArcherDougherty Link to comment
tuanphan Posted March 29 Share Posted March 29 On 3/27/2024 at 9:22 PM, ArcherDougherty said: Hello, I'm trying to accomplish the same thing - I have a strip gallery block on my home page, called PROJECTS, and each image is specifically meant to be a click through link, and I'd like an opacity change on hover to indicate the click through capability. None of the code on this site has worked, nor has turning off animations or lightbox, etc. My website is still in trial, it is https://cobalt-mustard-hn3a.squarespace.com You can follow this guide to share url 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!) Link to comment
ArcherDougherty Posted March 29 Share Posted March 29 (edited) Hello, thank you. Password is: archer2024 for the site https://cobalt-mustard-hn3a.squarespace.com I want to make sure the effect only applies to images that are links. None of the other images in galleries should have the effect 🙂 thank you! Edited March 29 by ArcherDougherty Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment