Skip to content

Instantly share code, notes, and snippets.

@wplit
Created May 12, 2020 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wplit/e28d26765fe70690491df465f9a48c9a to your computer and use it in GitHub Desktop.
Save wplit/e28d26765fe70690491df465f9a48c9a to your computer and use it in GitHub Desktop.
single image flip css
.single-product .woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
position: relative;
}
.single-product .secondary-image {
position: absolute;
top: 0;
left: 0;
right: 0;
opacity: 0;
pointer-events: none;
}
.single-product .woocommerce-product-gallery__image:hover + .secondary-image {
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment