The relevant CSS code is as follows. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, and animation-play-state. First, letâs define the CSS animation: @keyframes .slide { 0%{ transform: translate3d(0, 0, 0); } 100%{ transform: translate3d(-1692px, 0, 0); } } Default value: The source for this interactive example is stored in a GitHub repository. Now using CSS I have placed the text in middle using text-align: center; and put the font size and weight. That limitation is that transitions do not have a property that allows them to loop. It happens that in the CSS I think an animation with two input and both have the fill-mode parameter value with forwards. Ask Question Asked 5 years, ... and in 8s back to the fist position, the CSS animation frame should look like: 0%, 100% { /* Beggining and end of animation */ margin-left: 0%; } 30% { /* Beggining of transition margin-left: 0%; /* Until 3 seconds, keep same frame */ } 50% { /* End of ⦠How to loop this css slider animation?