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

<style>
.optimized-box {
width: 100px;
height: 100px;
background-color: cyan;
animation: optimizedMove 3s ease-in-out infinite;
}

@keyframes optimizedMove {
0% { transform: translateY(0) scale(1); }
50% { transform: translateY(200px) scale(1.2); }
100% { transform: translateY(0) scale(1); }
}
</style>