wink-like effect not working with animate()
Hi guys :)
I've created the following rollover effect but it doesn't work as expected :
- $(document).ready(function(){
- $('#area-row-2-sub-left a').bind({
- mouseover: function() {
- var tHeight = $(this).height();
- $(this).find('u').animate({height: '0'}, 400, function() {
- $(this).find('u').animate({height: tHeight}, 400, function() {
- });
- });
- },
- mouseout: function() {
- }
- });
- });
First problem : animate({height: tHeight} correctly sets the initial height but with a duration equal to zero.
Seconf problem : a second mouseover on the element won't show the animation at all.
Any idea of what's going on?
Thanks a lot! :)