Source Code: (back to article)
<div class="animated-box"></div>

<style>
.animated-box {
width: 100px;
height: 100px;
background-color: red;
animation: move 4s infinite;
}

@keyframes move {
0% { transform: translateX(0); }
50% { transform: translateX(200px); }
100% { transform: translateX(0); }
}
</style>