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

Answer by Dany Minassian for hover effect on div using jquery

$
0
0

Fiddle : http://jsfiddle.net/hdehzec0/16/

When you enter .section it disappears therefore mouseleave function gets triggered. Instead of using .section on mouseleave use .inner since your mouse is

$(document).ready(function () {        $(".inner").hide();        $(".section").mouseenter(function () {            $(this).hide();            $(this).next(".inner").show();        });        $(".inner").mouseleave(function () {            $(this).hide();            $(this).prev(".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>