SPR_85 Posted October 11, 2023 Share Posted October 11, 2023 Hello, I had a post in another section but adding to here instead as it is CSS related. I have created an image gallery using fluid engine and am trying to add a text overlay on hover. I've created my images and my text boxes and tried to apply the code below (using the text block ID), but it's not working: @media only screen and (min-width: 640px){ #block-yui_3_17_2_1_1696990279384_11181 { opacity: 0; transition: opacity 1s } #block-yui_3_17_2_1_1696990279384_11181:hover { opacity: 1; transition: opacity 1s } } Instead, it seems to be doing something odd - when the page loads, it's showing the gallery image and then transitioning to my hover text, but it's not actually doing anything on hover as it should. Any ideas on why this might not be working? Thank you Link to comment
Web_Solutions Posted October 11, 2023 Share Posted October 11, 2023 49 minutes ago, SPR_85 said: Hello, I had a post in another section but adding to here instead as it is CSS related. I have created an image gallery using fluid engine and am trying to add a text overlay on hover. I've created my images and my text boxes and tried to apply the code below (using the text block ID), but it's not working: @media only screen and (min-width: 640px){ #block-yui_3_17_2_1_1696990279384_11181 { opacity: 0; transition: opacity 1s } #block-yui_3_17_2_1_1696990279384_11181:hover { opacity: 1; transition: opacity 1s } } Instead, it seems to be doing something odd - when the page loads, it's showing the gallery image and then transitioning to my hover text, but it's not actually doing anything on hover as it should. Any ideas on why this might not be working? Thank you Can you share your website page URL where the gallery? 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
SPR_85 Posted October 11, 2023 Author Share Posted October 11, 2023 @Web_Solutions yes - URL: https://pineapple-apple-52zp.squarespace.com/config/pages Password: Test1234 Link to comment
Web_Solutions Posted October 11, 2023 Share Posted October 11, 2023 3 minutes ago, SPR_85 said: @Web_Solutions yes - URL: https://pineapple-apple-52zp.squarespace.com/config/pages Password: Test1234 I just see it. Where is the gallery? 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
SPR_85 Posted October 11, 2023 Author Share Posted October 11, 2023 @Web_Solutions it is my homepage - "home" - if you scroll down, it's the recent projects section as per the attached screenshot. Thank you Link to comment
Web_Solutions Posted October 12, 2023 Share Posted October 12, 2023 5 hours ago, SPR_85 said: @Web_Solutions it is my homepage - "home" - if you scroll down, it's the recent projects section as per the attached screenshot. Thank you Can you send me the Home page link? I can just see this 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
SPR_85 Posted October 12, 2023 Author Share Posted October 12, 2023 @Web_Solutions yes, here you are: https://pineapple-apple-52zp.squarespace.com/hometemp Slug is "hometemp" Thank you Link to comment
Web_Solutions Posted October 12, 2023 Share Posted October 12, 2023 10 minutes ago, SPR_85 said: @Web_Solutions yes, here you are: https://pineapple-apple-52zp.squarespace.com/hometemp Slug is "hometemp" Thank you You have disabled the page. That's why I can't see the page. You should enable the page. 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
SPR_85 Posted October 12, 2023 Author Share Posted October 12, 2023 @Web_Solutions I have now enabled the page, please let me know if you can access it at the below: https://pineapple-apple-52zp.squarespace.com/config/pages Thank you Link to comment
Web_Solutions Posted October 13, 2023 Share Posted October 13, 2023 5 hours ago, SPR_85 said: @Web_Solutions I have now enabled the page, please let me know if you can access it at the below: https://pineapple-apple-52zp.squarespace.com/config/pages Thank you I have fixed your code. Add these code below. I hope it will work. @media only screen and (min-width: 640px) { #block-yui_3_17_2_1_1696990279384_11181 { opacity:0 !important; transition: opacity 0.3s } #block-yui_3_17_2_1_1696990279384_11181:hover { opacity: 1 !important; } } Ainul 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
SPR_85 Posted October 16, 2023 Author Share Posted October 16, 2023 @Web_Solutions that works now - thank you! Please can you let me know how to adjust the opacity to be say 20%? I'd like to still see the image underneath on hover. Can you please also let me know how to speed up the transition? I've tried adjusting both transition opacity and opacity in the code but it doesn't seem to be working. Thank you Link to comment
Web_Solutions Posted October 16, 2023 Share Posted October 16, 2023 3 hours ago, SPR_85 said: @Web_Solutions that works now - thank you! Please can you let me know how to adjust the opacity to be say 20%? I'd like to still see the image underneath on hover. Can you please also let me know how to speed up the transition? I've tried adjusting both transition opacity and opacity in the code but it doesn't seem to be working. Thank you Here is the update code @media only screen and (min-width: 640px) { #block-yui_3_17_2_1_1696990279384_11181 { opacity: 0 !important; transition: 0.1s !important; } #block-yui_3_17_2_1_1696990279384_11181:hover { opacity: 80% !important; } } 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