Keyframe

here is the relevevant css

MDN keyframes reference

#scooter { animation-name: drivingAround; animation-duration: 10s; animation-iteration-count: infinite; animation-fill-mode: both; } @keyframes drivingAround { 0% { transform: translateX(-100px); } 50% { transform: translateX(600px); } 100% { transform: translateX(-100px); } }