I have this simple part of code where callback function is not working:
$(document).ready(function() {
$(".target:nth-child(3)").addClass("animated shake",function(){
$("body").addClass("animated hinge")
});
});
first function works just fine ( elements are shaking) but nothing happens after that.
I'm also using this css library: https://github.com/daneden/animate.css/blob/master/animate.css
.addClass()doesn't accept a callback function as a second argument. (It does optionally accept one as its only argument, but not for the purpose you are trying to use it for.)addClass()function only accepts a callback parameter - not the plain jQuery version: api.jqueryui.com/addClass