Skip to content

Instantly share code, notes, and snippets.

@theStreets93
Last active November 20, 2015 08:33
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 theStreets93/7a0f968d096e72b391e5 to your computer and use it in GitHub Desktop.
Save theStreets93/7a0f968d096e72b391e5 to your computer and use it in GitHub Desktop.
WooCommerce Product Image Flipper Effect Fix - https://wordpress.org/plugins/woocommerce-product-image-flipper/
jQuery(document).ready(function($){
jQuery( 'ul.products li.pif-has-gallery a:first-child' ).hover( function() {
jQuery( this ).find( '.wp-post-image' ).removeClass( 'fadeInDown' ).addClass( 'animated fadeOutUp' );
jQuery( this ).find( '.secondary-image' ).removeClass( 'fadeOutUp' ).addClass( 'animated fadeInDown' );
}, function() {
jQuery( this ).find( '.wp-post-image' ).removeClass( 'fadeOutUp' ).addClass( 'fadeInDown' );
jQuery( this ).find( '.secondary-image' ).removeClass( 'fadeInDown' ).addClass( 'fadeOutUp' );
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment