<div class="scrolling-limit">
<div class="scrolling">
I am scrolling!I am scrolling!I am scrolling!
I am scrolling!I am scrolling!I am scrolling!
I am scrolling!I am scrolling!I am scrolling!
</div>
</div>
div.scrolling-limit{
width: 300px;
height: 20px;
background-color: yellow;
overflow:hidden;
white-space:nowrap;
}
div.scrolling{
position: relative;
animation: scroll 20s infinite linear;;
animation: scroll 20s infinite linear;
animation: scroll 20s infinite linear;
animation: scroll 20s infinite linear;
}
@keyframes scroll{
0% {left: 500px;}
100% {left: -950px;}
}
@-webkit-keyframes scroll{
0% {left: 500px;}
100% {left: -950px;}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.