The z-index property is animatable in CSS.
Note: CSS Animations do not work in Internet Explorer 9 and earlier versions.
Gradually change the z-index property of "myBox" from 1, to 5, and back to 1: