After the animation I want to remove the block from the page. Those. first bring to opacity = 0, then make display = none
Code:
$("#go").click(function(){ $("#block").animate({ opacity: 0.0 }, 500 ); $("#block").hide(); });
immediately executes hide (), apparently in parallel. How to make perform sequentially?