.button .icon {
position: relative;
}
.button:active .icon {
top: 1px or more
}
$(button).on('click', function(e){
e.preventDefault();
$(this).addClass('animate');
});
button.animate {
transform: translateY(10px);
}
Find more questions by tags JavaScriptCSS