Product image questions - by richnation - on WordPress WooCommerce support

Solved4 replies2 participantsUpdated by Rose Tyler

  • Avatar: richnation
    richnation
    Participant

    I would like my product images to be zoomed in when hovered over and also have the “quick view” feature to encompass the whole product image (I don’t want the words to encompass the image, only the function).

    Basically, when someone hovers over my product image I would like the image to zoom, and then if they click anywhere on the image I would like it to pull up the quick view where they can still add to cart.

    Can this be done with css?

    4 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Please try to use this custom css code:

    .products-grid .product .product-image-wrapper img,
    .product-slide .product .product-image-wrapper img{
        transition: transform .2s; 
    }
    .products-grid .product:hover img,
    .product-slide .product:hover img{
        transform: scale(1.1);
    }
    .products-grid .product .show-quickly,
    .product-slide .show-quickly {
        font-size: 0px !important;
        width: 100%;
        height: 100%;
        background-color:  transparent;
    }

    Regards

    Avatar: richnation
    richnation
    Participant

    Yes, that worked. Thank you very much.

    Which variable would I change if I want to zoom in a little more?

    Avatar: richnation
    richnation
    Participant

    Never mind, I figured that out.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    You’re welcome!

    Regards

The issue related to '‘Product image questions’' has been successfully resolved, and the topic is now closed for further responses