Why is it that the animation changes the z-index?
If you look at the jsfiddle, you'll see the red image is on top but if you comment out the animation, the blue image is on top. How can I get the blue image to always be on top even with the animation?
HTML
<img class="blue" src="http://via.placeholder.com/200/0037ff">
<img class="red" src="http://via.placeholder.com/200/ff0010">
CSS
.red {
  -webkit-animation-name: red;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-name: red;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
.blue {
  transform: translate(30%);
}
@keyframes red {
  from {
    transform: translate(50%);
  }
  to {
    transform: translate(0);
  }
}
Any help is much appreciated!
 
     
     
    