Gradually change the outline-offset property from 0 to 50px, and back to 0:
Note: CSS Animations do not work in Internet Explorer 9 and earlier versions.