How to add hovering effect for products using a gif

Solved
bytebazaar
Tourist
6 0 2

Hey,

I would like to add a hovering effect for my product images on my homepage and collection page.

I want a GIF to show up, while hovering on a product.

I am currently using the Dawn theme v. 12.0.0

My website is shopbytebazaar.com .

I don't know how to do that. Any help will be appreciated

 

Thanks in advance!

Accepted Solution (1)
Dan-From-Ryviu
Shopify Partner
5494 1004 1032

This is an accepted solution.

It will not app the same gif for both products, it will appear gif image belong to that product when hovering but you must go to each product, add gif image is 2nd image of productsScreenshot 2023-11-08 at 14.10.47.png

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

View solution in original post

Replies 11 (11)
Dan-From-Ryviu
Shopify Partner
5494 1004 1032

Hi @bytebazaar 

You can try to add this code at the bottom of your base.css file in Online store > Themes > Edit code

.card-wrapper:hover .card--media:after {
    content: url('your gif link goes here');
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

bytebazaar
Tourist
6 0 2

Thanks for the answer,

but does this apply to all of my products? I've got multiple products and therefore want to match the products with their according GIFs.

Dan-From-Ryviu
Shopify Partner
5494 1004 1032

Yes, it will apply to all products and use the same gif. 

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

bytebazaar
Tourist
6 0 2

I see, but I don't want to use one GIF for every product. Every product has its own GIF. So for example if I hover on product 1 a GIF of product 1 should appear and if I hover on product 2 a GIF of product 2 should appear. I want different GIFs to show up.

Dan-From-Ryviu
Shopify Partner
5494 1004 1032

You can do that by adding gif image is 2nd image of your products and then enable option "Show second image on hover" in your Online store > Themes > Customize > Collections > Default collections

Screenshot 2023-11-08 at 13.58.12.png

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

bytebazaar
Tourist
6 0 2

But this way one specific GIF is for every product?

Dan-From-Ryviu
Shopify Partner
5494 1004 1032

Yes, it will. 

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

bytebazaar
Tourist
6 0 2

But that is not what I want. I don't know how to explain sorry.

What I want is let's say I have 2 products on my page. 1st product is a t-shirt so I want a GIF of that T-Shirt to show up when you hover above the T-Shirt. The 2nd product is a hoodie, so I want a GIF of the Hoodie to show up. From what I understood if I would follow your advise there would be a GIF of a T-Shirt on both products, which would not make much sense. So I want sperate GIFs for seperate products. 🙂

 

Dan-From-Ryviu
Shopify Partner
5494 1004 1032

This is an accepted solution.

It will not app the same gif for both products, it will appear gif image belong to that product when hovering but you must go to each product, add gif image is 2nd image of productsScreenshot 2023-11-08 at 14.10.47.png

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

bytebazaar
Tourist
6 0 2

Oh I see my bad. Thank you very much!

Dan-From-Ryviu
Shopify Partner
5494 1004 1032

You are very welcome

 

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now