I am trying to create a banner that scrolls endlessly with css3 animation. The problem is that after the animation finishes, it cuts sharply when restarting. I am trying to figure out how to prevent this harsh animation.
I have posted my code here.
@keyframes slideleft { from{background-position: right;} to {background-position: left;} } @-webkit-keyframes slideleft { from{background-position: right;} to {background-position: left;} } #masthead { background-image: url('http://static.communitytable.parade.com/wp-content/uploads/2014/06/dogs-in-world-cup-jerseys-ftr.jpg'); animation: slideleft 5s infinite ease-in-out; -webkit-animation: slideleft 5s infinite ease-in-out; width: 100%; height: 1200px; }
<div id="masthead"></div>
html css css3 css-animations
Ninjacoder
source share