Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Add Product Hover Effect to Product Image

Solved

Add Product Hover Effect to Product Image

Dclootbox
Excursionist
42 0 8

Hello.

 

How can i add a hover effect on product images on collection page, so when i hover the image, its kinda zooms out?

 

Website HERE

 

Thanks 🙂

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9085 2172 2681

This is an accepted solution.

Hi @Dclootbox 

Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.product-card__figure img {
     transition: transform 0.3s ease;
}
.product-card__figure img:hover {
transform: scale(1.1);
}

 

  • And save. 
  • Result:
  • Made4uoRibe_0-1700680271765.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
9085 2172 2681

This is an accepted solution.

Hi @Dclootbox 

Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.product-card__figure img {
     transition: transform 0.3s ease;
}
.product-card__figure img:hover {
transform: scale(1.1);
}

 

  • And save. 
  • Result:
  • Made4uoRibe_0-1700680271765.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Dclootbox
Excursionist
42 0 8

Thanks so much! Works like a charm 🙂