Ptphotography Posted January 19, 2021 Share Posted January 19, 2021 Hello everyone, Please lend me your help. Upon hover, my gallery images zooms in and out, the zoom in transition is smooth but the zoom out effect is rather sudden so the end result looks jumpy. Here is the code I used: .gallery-grid-item img:hover{ transform:Scale(1.1); transition-duration: 1s; } .gallery-grid-item {overflow:hidden!important } Please someone tell me what I did wrong in my code. Here is the link to my gallery:https://www.ptphotography.com/stmoritz-badrutts-palace-hotel-switzerland For reference, we want to achieve the same smooth transition like this product page:https://www.ptphotography.com/destination-trial I used the same code for the product and gallery page but I don't know why they have different effect. Please help 🙏 Thank you in advance, Kind regards, K Link to comment
Beyondspace Posted January 19, 2021 Share Posted January 19, 2021 4 hours ago, Ptphotography said: Hello everyone, Please lend me your help. Upon hover, my gallery images zooms in and out, the zoom in transition is smooth but the zoom out effect is rather sudden so the end result looks jumpy. Here is the code I used: .gallery-grid-item img:hover{ transform:Scale(1.1); transition-duration: 1s; } .gallery-grid-item {overflow:hidden!important } Please someone tell me what I did wrong in my code. Here is the link to my gallery:https://www.ptphotography.com/stmoritz-badrutts-palace-hotel-switzerland For reference, we want to achieve the same smooth transition like this product page:https://www.ptphotography.com/destination-trial I used the same code for the product and gallery page but I don't know why they have different effect. Please help 🙏 Thank you in advance, Kind regards, K Move the transition property like so .gallery-grid-item:hover img { transform:Scale(1.1); } .gallery-grid-item img { transition-duration: 1s; } .gallery-grid-item { overflow: hidden!important; } Ptphotography 1 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
Ptphotography Posted January 19, 2021 Author Share Posted January 19, 2021 3 hours ago, bangank36 said: Move the transition property like so .gallery-grid-item:hover img { transform:Scale(1.1); } .gallery-grid-item img { transition-duration: 1s; } .gallery-grid-item { overflow: hidden!important; } @bangank36 This is amazing! It worked as expected. Thank you for your help. Stay safe always, K 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