css - Delay for overlay to disappear on mouseout -


I have a site on the site on which WooCommerce is running. There is a noticeable delay on the product archive page when the mouse leaves a product and the overlay disappears. I would like to reduce that delay to 0.1

URL:

I have tried to look at various CSS files in the main topic and to see if there is one 0.5 s or similar control with 'infection'. Thumb-Overlay, but seems relevant that nothing can be found.

I thought the setting might be in javascript, but there are many files it can be stored, I am at a loss.

I have seen the page using the firebug inspector and the page. Thumb Overlay has a style feature that runs between 'Display: Block' and 'Display: None', and as you move the mouse over the 'ambiguity' feature, counting as 0 to 1 goes.

Do anyone know how the value of the delay can be stored?

This is your wp-content / themes / agent / woocommerce / woocommerce-custom.js < Line 1 9 in the / code> file.

  jQuery (document) .on ('mousecenter', '.products .product', function () {JQuery (this) .find ('thumb-overlay'). , True). FadeIn ();}); JQuery (document) .on ('mouseleave', '.products .product', function () {jQuery (this) .find ('thumb-overlay'). Stop (true, true). FadeOut ();} );  Edit    or get_header, etc.  

The correct way to add scripts to WordPress is if your parent theme uses this, you can override JS files using your own and by enqueuing them.

Similar ...

   

If the parent theme is not using wp_enqueue_script, then possibly there is a link to wp_head (or wp_footer) to echo out the scripts, then you resonate the script Use them to get rid of those tasks, and then enqueue your script.

If the script has been coded hard in the template file, then you will need to change that template file in your child theme without the script tag.

If they use wp_enqueue_script, you should not do anything. Since this is not happening, you'll just cook around and see what the theme author does.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -