I've never used CSS animations before but would like to on my next project. I have this:
But rather than having the color just change I'd like it to fill left to right in the same way a progress bar does. Is this possible with a border color?
.box{
position : relative;
width : 200px;
height : 50px;
background-color : black;
color:white;
border-bottom: 5px solid grey;
-webkit-transition : border 500ms ease-out;
-moz-transition : border 500ms ease-out;
-o-transition : border 500ms ease-out;
}
.box:hover{
border-bottom: 5px solid red;
}