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