CKW_242 Posted December 21, 2022 Share Posted December 21, 2022 Password: bconsult The code reveal text on a hover code works in my editor view but not in live view when I access the page from the front ed. Here i the doe I am using: @media only screen and (min-width: 640px){ #block-50a60eabf9b7879fd7ec{ opacity: 0; transition: opacity 1s } #block-50a60eabf9b7879fd7ec:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-b9c394e42cbe4f0614b7{ opacity: 0; transition: opacity 1s } #block-b9c394e42cbe4f0614b7:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-8ac8af888d0f13c5a5f5{ opacity: 0; transition: opacity 1s } #block-8ac8af888d0f13c5a5f5:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-207b0fa7a755d1b13c8a{ opacity: 0; transition: opacity 1s } #block-207b0fa7a755d1b13c8a:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-1559eef8f75e1479225a{ opacity: 0; transition: opacity 1s } #block-1559eef8f75e1479225a:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-ad4977c97fa2f8f9cc87{ opacity: 0; transition: opacity 1s } #block-ad4977c97fa2f8f9cc87:hover { opacity: 1; transition: opacity 1s } } Link to comment
Beyondspace Posted December 23, 2022 Share Posted December 23, 2022 On 12/22/2022 at 3:36 AM, CKW_242 said: Password: bconsult The code reveal text on a hover code works in my editor view but not in live view when I access the page from the front ed. Here i the doe I am using: @media only screen and (min-width: 640px){ #block-50a60eabf9b7879fd7ec{ opacity: 0; transition: opacity 1s } #block-50a60eabf9b7879fd7ec:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-b9c394e42cbe4f0614b7{ opacity: 0; transition: opacity 1s } #block-b9c394e42cbe4f0614b7:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-8ac8af888d0f13c5a5f5{ opacity: 0; transition: opacity 1s } #block-8ac8af888d0f13c5a5f5:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-207b0fa7a755d1b13c8a{ opacity: 0; transition: opacity 1s } #block-207b0fa7a755d1b13c8a:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-1559eef8f75e1479225a{ opacity: 0; transition: opacity 1s } #block-1559eef8f75e1479225a:hover { opacity: 1; transition: opacity 1s } } @media only screen and (min-width: 640px){ #block-ad4977c97fa2f8f9cc87{ opacity: 0; transition: opacity 1s } #block-ad4977c97fa2f8f9cc87:hover { opacity: 1; transition: opacity 1s } } What is your URL Site? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Solution creedon Posted December 25, 2022 Solution Share Posted December 25, 2022 (edited) Try the following. /* image hover effect, uses LESS syntax */ @media only screen and ( min-width : 640px ) { html:not( .squarespace-damask ) { .fe-block-50a60eabf9b7879fd7ec, .fe-block-b9c394e42cbe4f0614b7, .fe-block-8ac8af888d0f13c5a5f5, .fe-block-1559eef8f75e1479225a, .fe-block-207b0fa7a755d1b13c8a, .fe-block-ad4977c97fa2f8f9cc87 { opacity : 0; transition : opacity 1s; &:hover { opacity : 1; } } } } One thing to note. I made it so the code would not be active in Preview as that might interfere the editing process. To view the effect you'll need to use Private browsing. Let us know how it goes. Edited December 25, 2022 by creedon Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
CKW_242 Posted December 27, 2022 Author Share Posted December 27, 2022 Thank you so much! Link to comment
PUPILA Posted November 24 Share Posted November 24 Hello, I'm having the same issue. I tried to copy paste the above code, changed the block numbers but it is not working. Would appreciate any help you can give me. Link to comment
creedon Posted Friday at 07:40 PM Share Posted Friday at 07:40 PM 2 hours ago, PUPILA said: Would appreciate any help you can give me. It's hard to help when we can't see your site. Please post the URL for a page on your site where we can see your issue. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. We can then take a look at your issue. You may find How to post a forum question post useful. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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