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