MML997 Posted June 11, 2021 Share Posted June 11, 2021 Site URL: https://www.worqflowsolutions.com/copy-of-home On our site I am trying to implement a hover over effect in the 'Our Expertise' section of our Home Page. I am currently using this code in our custom CSS: .image-swap-1 img:nth-child(1) { position: absolute; transition: 1s; } .image-swap-1 img:nth-child(1):hover { opacity: 0; } Then I am using this code within a code block to decide which photo goes on top: <div class="image-swap-1"> <img src="https://static1.squarespace.com/static/577c578f20099ef8087b6a74/t/60c37fa8d794e739ca421f73/1623424937257/ERP.png"> <img src="https://static1.squarespace.com/static/577c578f20099ef8087b6a74/t/60c38092c1f563780a25c5b7/1623425170318/ERP+-+Float+over.png"> </div> The issue I have on the site is that it seems to make the pictures different sizes, and they aren't aligned prior to the hover effect either (you can see the corner of the lower picture). I made the photos in Canva and made sure they were both the same scale, so I'm not sure if there is an easy fix, but any help would be most appreciated. Thanks! Link to comment
tuanphan Posted June 12, 2021 Share Posted June 12, 2021 Hi. You can follow this guide to add image hover effect. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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