First I have an animated iframe whose id is "test"
<iframe id="test" src=""></iframe>
then I want to animate it and hide it, make a close effect, like in MacOS:
$('#test').animate({ 'width':0, 'height':0, 'top':$('input').offset().top, 'left':$('input').offset().left },function(){
but it seems that the iframe cannot be hidden. However, if I write it in the callback function, which is in the animation, which is the annotated code above. This may work again.
Here is an online example
So, I am wondering why hide () after animate () does not work? Did I miss something?
source share