Suni Posted March 20 Share Posted March 20 Hi I mannaged to make a nice hover-effect on the images on the website, with help from a various very helpful youtubers. The intention was to only have the effect on the images who also funktion as a hyper-link, but now the effect is on all the images on the website. Is there a way to target only images with active link? This is the code I have now: /* Hover effect on images */ .fluid-image-container:hover img { filter: brightness(60%); box-shadow: 0px 0px 10px #FFC700; transition: all 1s ease; transform: scale(1.1); Beyondspace 1 Link to comment
Beyondspace Posted March 20 Share Posted March 20 2 hours ago, Suni said: Hi I mannaged to make a nice hover-effect on the images on the website, with help from a various very helpful youtubers. The intention was to only have the effect on the images who also funktion as a hyper-link, but now the effect is on all the images on the website. Is there a way to target only images with active link? This is the code I have now: /* Hover effect on images */ .fluid-image-container:hover img { filter: brightness(60%); box-shadow: 0px 0px 10px #FFC700; transition: all 1s ease; transform: scale(1.1); Could you share the page url with the image? We can use the href attribute as css selector, but we need to know the exact image to select 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
Suni Posted March 23 Author Share Posted March 23 (edited) Hi. This is the website: https://www.steingrund.com It is not a specific image, but I needed to target all images on every page that have a clickeble link attached to them. But I did actually figure it out with the help from a friend. This is the code that works: ///Hover effect on images/// .sqs-block-image-link:hover img { filter: brightness(60%); box-shadow: 0px 0px 10px #FFC700; transition: all 1s ease; transform: scale(1.1); } ///Fade out the transition/// .fluid-image-container img { transition: all 1s ease; } Edited March 23 by Suni 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