angelosgambati Posted October 11 Share Posted October 11 Hi, I have been trying to add code to my custom CSS to make the images in my masonry gallery page zoom in when hovering over them on certain pages. None of the codes work for me. Does anyone know why this would be the case? This is the code I'm using: .gallery-masonry-item img:hover {transform:Scale(1.2)} https://www.angelosgambati.com/overview Thank you, Angelo. Link to comment
Web_Solutions Posted October 11 Share Posted October 11 15 minutes ago, angelosgambati said: Hi, I have been trying to add code to my custom CSS to make the images in my masonry gallery page zoom in when hovering over them on certain pages. None of the codes work for me. Does anyone know why this would be the case? This is the code I'm using: .gallery-masonry-item img:hover {transform:Scale(1.2)} https://www.angelosgambati.com/overview Thank you, Angelo. Add these code on Custom CSS panel in Website > Utilities > Website Tools > Custom CSS. [data-section-id="650323547974590aaa61f414"] { .gallery-masonry-item img { transition: 0.3s; } .gallery-masonry-item:hover img { transform: scale(1.2); } } If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
angelosgambati Posted October 12 Author Share Posted October 12 Thank you for sending the code. It still doesn't work for me. I think there is something wrong with my CSS because I have tried to use other CSS codes and they haven't worked either. Link to comment
paul2009 Posted October 12 Share Posted October 12 1 hour ago, angelosgambati said: It still doesn't work for me. I think there is something wrong with my CSS It looks like the new CSS has been inserted into the middle of existing CSS (before the final "}") which means that it is incorrect and won't function. About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Solution Web_Solutions Posted October 12 Solution Share Posted October 12 1 hour ago, angelosgambati said: Thank you for sending the code. It still doesn't work for me. I think there is something wrong with my CSS because I have tried to use other CSS codes and they haven't worked either. Please add the code on bottom. not in the middle your previous code. If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
angelosgambati Posted October 13 Author Share Posted October 13 Thank you so much!! Do you know how I would make the images zoom outside of the frame? Link to comment
Web_Solutions Posted October 13 Share Posted October 13 1 hour ago, angelosgambati said: Thank you so much!! Do you know how I would make the images zoom outside of the frame? Do you want like this? https://www.loom.com/share/4cc8a1382d384498ab1e10db2b7ded4d?sid=3f3638a4-11e3-4a4e-9e48-6071f6c21301 angelosgambati 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
angelosgambati Posted October 14 Author Share Posted October 14 On 10/12/2023 at 9:07 PM, Web_Solutions said: Do you want like this? https://www.loom.com/share/4cc8a1382d384498ab1e10db2b7ded4d?sid=3f3638a4-11e3-4a4e-9e48-6071f6c21301 Yes please Link to comment
Web_Solutions Posted October 14 Share Posted October 14 6 minutes ago, angelosgambati said: Yes please Add these code on Custom CSS panel in Website > Utilities > Website Tools > Custom CSS. Put these code on the bottom. Not in the middle of any code [data-section-id="650323547974590aaa61f414"] { .gallery-masonry-item .gallery-masonry-item-wrapper{ overflow: visible !important; } .gallery-masonry-item .gallery-masonry-item-wrapper img{ transition: 0.3s; } .gallery-masonry-item:hover .gallery-masonry-item-wrapper img{ transform: scale(1.3); } } If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. 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