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