javascript - How to disable the hover event when I hover over the text inside the image? -
i have problem in code, when hover on image, image become 50% larger , display text on image, when hover on text, image enter state of mouseout, mouseover, mouseout, mouseover. flicker lot. how can disable hovering event when mouse on text of image? tried event.stoppropagation in text isn't working.
here's jsfiddle. try hover on image, try hover on text. that's effect i'm talking about. want disable text hover event. please me.
i found out solution this,
i this. instead of using hover effect on img element, on parent, $('.imgwall') , increase image $(this).find('img'). , $(this).find('h2').show()/hide() show text inside hover event.
thanks looking!
Comments
Post a Comment