Объясните пожалуйста, почему в примере, loader.fadeOut(300, funct....) не скрывет картинку(loader)?
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>FadeUtIn</title>
<style>
.im-hidden {
display: none;
}
</style>
</head>
<body>
<div class="wrap">
<div class="block">
<button class="calc">Расчитать</button>
<span class="im-hidden">
<img src="loader.gif" alt="">
</span>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$('.calc').click(function(e){
e.preventDefault();
var $this = $(this),
parent = $this.parent(),
loader = $this.next();
$this.fadeOut(300, function(){
loader.fadeIn()
})
loader.fadeOut(300, function() {
$this.fadeIn();
});
});
});
</script>
</body>
</html>