<button type="button" class="btn btn-success" id='yourElement' >Успех</button>
#yourElement {
$('#yourElement').addClass('animated shake');