@keyframes slidyOM { 0% { left: -80%; } 6% { left: -80%; } 14% { left: 0%; } 15.5% { left: 0%; } 19% { left: -10%; } 24.99% { left: -10%; } 25% { left: -240%; } 33% { left: -240%; } 35% { left: -230%; } 36% { left: -230%; } 40% { left: -300%; } 47.99% { left: -300%; } 48% { left: -525%; } 55% { left: -525%; } 62% { left: -455%; } 69.99% { left: -455%; } 70% { left: -680%; } 78% { left: -680%; } 80% { left: -670%; } 82% { left: -670%; } 87% { left: -780%; } 88.5% { left: -780%; } 91% { left: -750%; } 100% { left: -750%; } } body { margin: 0; } div#sliderOM { overflow: hidden; } div#sliderOM figure img { width: 20%; float: left; } div#sliderOM figure { position: relative; width: 1115%; margin: 0; left: 0; text-align: left; font-size: 0; animation: 40s slidyOM infinite; } w3, w5 {background:#54A0D2;} w4 {background:#69C8B4;} @media (min-width: 47em) { w4 {background:#54A0D2;} }