$(".target").animateCss('bounce');
$(".s-target").animateCss('bounce', { duration : 2000});
$(".s-target").animateCss('bounce', function() {
$(this).toggleClass("green");
});
$(".s-target").html("").animateCss('effect-no-exists', function() {
$(this).html("callback safe!");
});
$(".s-target").animateCss('pulse').promise()
.then(function() {
$(this).html("Promise resolved!");
});
$(".s-case-5 .s-target").each(function(idx, el) {
$(el).animateCss('pulse',
{
delay: 100 * idx
}
).promise().then(function() {
$(this).toggleClass("green");;
});
});