I'm having some problems with jQuery MouseOut and MouseOver.
Each time I hover over a selected div, a child div appears that should be displayed. however, it starts to blink.
I have no idea why. I posted the code on JsFiddle.
http://jsfiddle.net/Dn6Rq/
Here is the HTML code:
<div class="section-item-portal"> <div class="section-text">Lorem Ipsum Dolor Sit Amet, Lorem Ipsum Dolor Sit Amet, Lorem Ipsum Dolor Sit Amet, Lorem Ipsum Dolor Sit Amet, Lorem Ipsum Dolor Sit Amet, Lorem Ipsum Dolor Sit Amet, </div> </div>
Here is jQuery:
$(document).ready(function () { $('.section-text').hide(); $('.section-item-portal').mouseover(function () { $(this).children('.section-text').fadeIn(); }); $('.section-item-portal').mouseout(function () { $(this).children('.section-text').fadeOut(); }); });
I would be grateful for your help :)
source share