Last active
September 22, 2017 23:12
-
-
Save vielhuber/9f7f4ebe096d4f13d34e to your computer and use it in GitHub Desktop.
when both animation and post/load are finished, execute function #js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.when( | |
$('.box').animate({ opacity: 0 }, 1000, 'linear'), | |
$.post( $(this).closest('form').attr('action'), $(this).closest('form').serialize() ) | |
).then(function () { | |
alert('both finished'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment