jquery clear animation queue
- by Elliott
I have the code below, which works fine it can be viewed here for an example. Once the user hovers over one menu, you can then not hover over it again unless the page is refreshed. I have a feeling its something to do with my queue and I have tried .stop() but doesnt seem to work.
<script type="text/javascript">
$(document).ready(function()
{
$('li').hover(function()
{
$(this).children("p.subtext").stop().slideDown();
},
function()
{
$(this).children("p.subtext").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutBounce'})
});
});
</script>
Cheers