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