Quantcast
Channel: hover effect on div using jquery - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Hamson for hover effect on div using jquery

$
0
0

As the ".section" is hidden, your mouse leaves the .section. This is why it blinks.And as you show a .hidden, you need to fire your event when you leave the .hiddenHere is something that may solve your issue: (http://jsfiddle.net/hdehzec0/7/) :

$(document).ready(function () {    $(".inner").hide();    $(".section").mouseenter(function () {        $(this).next(".inner").show();        $(this).hide();    });    $(".inner").mouseleave(function () {        $(this).hide();        $(".section").show();    });});

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>