I have the following js code and am wondering how I can make it clean. It works fine but there are few repetitions. Is there a way to make it more clean?
$('.js-decline-button').click(function() {
$('.js-confirmation').show().stop(true).animate({ left : '0' }, 500);
});
$('.js-confirmation-yes').click(function() {
$('.js-confirmation').stop(true).animate({ left : '-100%' }, 500);
$('.container').delay( 500 ).fadeOut( 200 ).hide(200);
});
$('.js-confirmation-no').click(function() {
$('.js-confirmation').stop(true).animate({ left : '-100%' }, 500);
});