I just add a queue because the #wait dialog may still be animated. Then I do this, but there are two problems:
- expanding from 69px to 100% doesn't work (i mean: isn't smooth, it's bing bang no animation);
- I'm pretty sure there may be a way of avoiding
children().children()
:
Any idea?
$('#wait').queue(function() {
$('#tableau')
.fadeIn(100)
.queue(function() {
$('tr').mouseenter(function() {
$(this).children('.principal').children('.texte')
.animate({ height: '100%'}, 'slow');
});
$('tr').mouseleave(function() {
$(this).children('.principal').children('.texte')
.animate({ height: '69px'}, 'slow', function() { $(this).clearQueue(); } );
});
}
);
});
Thank you!