I'm trying to animate a button click by 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' );
});
From some reason it doesn't animate the top border only the bottom.
Update
.submitButton {
padding: 10px;
border: 0px;
border-bottom: 5px solid #1B5A81;
background-color: #267DAD;
color: white;
font-weight: bold;
}