Note that there are some explanatory texts on larger screens.

plurals
  1. POSVG Image element flickers on mouseover
    primarykey
    data
    text
    <p>I have a svg image element in my site. i want to hide that image on mouseover and show on mouseout.</p> <p><strong>But, i have a strange problem that the image flickers on mouseover.</strong></p> <p>I tried hiding the image though css and jquery. In both approaches i encountered the same error.</p> <p>SVG</p> <pre><code>&lt;svg xmlns="http://www.w3.org/2000/svg" version="1.1"&gt; &lt;image x="20" y="20" class="imghideshow" width="300" height="80" xlink:href="http://cdn1.iconfinder.com/data/icons/musthave/128/Help.png" /&gt; &lt;/svg&gt; </code></pre> <p>CSS</p> <pre><code>.imghideshow:hover { visibility:hidden; } </code></pre> <p><a href="http://jsfiddle.net/GMd8w/" rel="nofollow">http://jsfiddle.net/GMd8w/</a></p> <p>Please help me to recover the flicker problem. All i want is to hide the image on hover and show on mouseout.</p> <p><strong>Edited Scenario based on the answers given below.</strong> </p> <p>Well implementing opacity solved flickering issue. But reproduces another problem when i implemented that css property.</p> <p>So let me explain my full requirement.</p> <p>I have two overlapped images.(i.e.,) child image overlapped on parent. when i click on parent image, it should trigger a function in js. since child image is not completely hidden here, i cant click on the child overlapped area of parent. check this fiddle. </p> <p><a href="http://jsfiddle.net/VwmEU/" rel="nofollow">http://jsfiddle.net/VwmEU/</a></p> <p>Expected output is:</p> <p>When i hover on child, it should hide and i should be able to trigger parent function.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload