jQuery mouse hover intent use -
i newbie jquery. have piece of code.here link fiddle. here can see when make hover on #flip slide down , when make mouse out slide down. point working fine. want there hoverintent if play hover , out not affect slide run automatic. jquery code looks this
<script> $(document).ready(function(){ $("#flip").hover(function(){ $("#panel").slidetoggle("slow"); }); }); </script>
add stop stop currently-running animation.
$(document).ready(function(){ $("#flip").hover(function(){ $("#panel").stop(true, true).slidetoggle("slow"); }); }); the first parameter used remove queued animation, second used complete current animation immediately.
check documentation
updated demo: http://jsfiddle.net/rqq6c/1/
Comments
Post a Comment