Gradually change the border-right property:
The border-right is a shorthand property for all border-right properties.
See individual border-right properties to see which is animatable.
Note: CSS Animations do not work in Internet Explorer 9 and earlier versions.