I finally got the bounce working after the effect, but for some reason, it won’t close the facebox after submitting. It closed after submission before, but what is it that I’m doing wrong?
$.ajax({
url: '../../_lib/forms/comment_ajax.php?id=<?php echo $_GET['id']; ?>',
data: { form_name: name, form_comment: comment },
success: function(data) {
$('#new_comment').append(data);
$(document).trigger('close.facebox');
$('#new_comment').effect("bounce", { direction:'down', times:5 }, 300);
$('html,body').animate({scrollTop:0}, 2000, "easeOutElastic");
return false;
}
});
});
Instead of doing:
Try this: