JSFiddle - React, Tailwind, and code Playground
HTML
<figure>
<div class="stretchy-wrapper">
<span class="participant" style="z-index: 4;">
<span class="car">
<img class="sprite" src="http://i.imgur.com/OwYhg9T.png" alt="">
</span>
</span>
</figure>
CSS
figure {
margin: 0 auto;
width: 100%;
}
div.stretchy-wrapper {
width: 100%;
padding-bottom: 71.74%; /* 980px:1366px */
position: relative;
background-image: url("http://i.imgur.com/G4gs6EG.png");
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: contain;
}
@-moz-keyframes move
{
from {
right: -30%;
top: 8%;
}
to {
right: 140%;
top: 80%;
}
}
@-webkit-keyframes move
{
from {
right: 0%;
top: 5%;
}
to {
right: 100%;
top: 95%;
}
}
.participant {
position: absolute;
display: inline-block;
height:5%;
width: 5%;
-moz-animation:move 2s linear infinite;
-webkit-animation:move 2s linear infinite;
}
.car img {
width: 140%;
height: 140%;
}