I have ul with a height of 125px. When the user hovers ul, I want the height to be animated to the height of auto. And when the user exits ul, UL will again split by 125px.
$('.box .box-overflow ul').hover(function() {
$(this).animate({
height: '100%'
}, 400);
}, function() {
$(this).animate({
height: '125px'
}, 400);
});
This works, but when the user comes to ul, it expands, but not with a nice animated effect?
Can someone help me on this? :)
source
share