Gradually change the border-top-width property from 1px to 15px then back:
The border-top-width is animatable in CSS.
Note: CSS Animations do not work in Internet Explorer 9 and earlier versions.