BornToClick Posted April 10, 2023 Share Posted April 10, 2023 Hey guys, I've recently added below code to spareroomwellness.com website homepage (How can I support you section), however when you view it, it straight away jumps into the text (there's no hover over options to show an image first). Any idea why? @media only screen and (min-width: 640px){ #block-bff684b9c89c06c3bb96 { opacity: 0; transition: opacity 1s } #block-bff684b9c89c06c3bb96:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-b1a0cd1a480ecbaf82b1 { opacity: 0; transition: opacity 1s } #block-b1a0cd1a480ecbaf82b1:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-b4d99e2255b92bd3cd49 { opacity: 0; transition: opacity 1s } #block-b4d99e2255b92bd3cd49:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-3f4091346678d55d40cf { opacity: 0; transition: opacity 1s } #block-3f4091346678d55d40cf:hover { opacity: 1; transition: opacity 1s } } Link to comment
tuanphan Posted April 13, 2023 Share Posted April 13, 2023 Hi. What should it look like? 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
BornToClick Posted April 16, 2023 Author Share Posted April 16, 2023 Hi @tuanphan I would like to have images with titles displayed first and only on hover the full description to appear. See both screenshots. Link to comment
Vicks Posted April 16, 2023 Share Posted April 16, 2023 Your styles are not working because SS has applied !imprtant override on opacity in their theme: .fadeIn:not([data-override-initial-global-animation]) { opacity: 1 !important; } So I think you are better off targeting the parent element and apply opacity there: use .fe-block-bff684b9c89c06c3bb96 as your selector and it should work tuanphan 1 Link to comment
BornToClick Posted April 19, 2023 Author Share Posted April 19, 2023 @Vicks amazing, that worked! Thank you so much 😄 Vicks and tuanphan 2 Link to comment
Solution Vicks Posted April 20, 2023 Solution Share Posted April 20, 2023 19 hours ago, BornToClick said: @Vicks amazing, that worked! Thank you so much 😄 glad I could help. You can mark it as solution if it solved the issue. tuanphan 1 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