Rmng_ Posted September 2 Share Posted September 2 Hello 🙂 I'd like to have an effect on a few images in a section of a page on my website. But I can't find the error in the code found on youtube tutorials. Here's a screenshot of the code: Thanks in advance for your help 😄 Link to comment
Ziggy Posted September 2 Share Posted September 2 You've got the closing square bracket from the section ID in the wrong place, move it as here: 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
Rmng_ Posted September 2 Author Share Posted September 2 It doesn't work like this but i found an other code and it's working actually with : <style> section[data-section-id="66c4b670708ce031195e5a92"] { .sqs-block-image img { transform: scale(1); transition: 400ms; overflow:hidden !important; } .sqs-block-image:hover img { transform: scale(1.1); transition: 400ms; } } </style> Link to comment
Rmng_ Posted September 2 Author Share Posted September 2 And, if i want to have this effect on just 4 images of this section, do i need to code for each images ? Link to comment
Solution Ziggy Posted September 2 Solution Share Posted September 2 This time you're missing a round bracket here: 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment