Attempting to add animation to a button click using borders and jQuery animate function.
jQuery( '#sendForm' ).hover( function (){
jQuery( this ).animate({
borderTopWidth: "5px",
borderBottomWidth: "0px"
}, 'fast' );
}, function (){
jQuery( this ).animate({
borderTopWidth: "0px",
borderBottomWidth: "5px"
}, 'fast' );
});
Encountering an issue where only the bottom border animates, not the top.
Update
.submitButton {
padding: 10px;
border: 0px;
border-bottom: 5px solid #1B5A81;
background-color: #267DAD;
color: white;
font-weight: bold;
}