<!-- HTML -->	
<div class="demo-1">
<h3>Lorem ipsum...</h3>
</div>
body {
 padding-top: 25px;  
}

.demo-1 {
 height: 60px;	
 overflow: hidden;
 position: relative;
}

.demo-1 h3 {
 font-size: 5em;
 color: #e91e63;
 position: absolute;
 width: 100%;
 height: 100%;
 margin: 0;
 line-height: 50px;
 text-align: center;
 /* Starting position */
 -moz-transform:translateX(100%);
 -webkit-transform:translateX(100%);	
 transform:translateX(100%);
 /* Apply animation to this element */	
 -moz-animation: demo-1 15s linear infinite;
 -webkit-animation: demo-1 15s linear infinite;
 animation: demo-1 15s linear infinite;
}
/* Move it (define the animation) */
@-moz-keyframes demo-1 {
 0%   { -moz-transform: translateX(100%); }
 100% { -moz-transform: translateX(-100%); }
}
@-webkit-keyframes demo-1 {
 0%   { -webkit-transform: translateX(100%); }
 100% { -webkit-transform: translateX(-100%); }
}
@keyframes demo-1 {
 0%   { 
 -moz-transform: translateX(100%); /* Firefox bug fix */
 -webkit-transform: translateX(100%); /* Firefox bug fix */
 transform: translateX(100%); 		
 }
 100% { 
 -moz-transform: translateX(-100%); /* Firefox bug fix */
 -webkit-transform: translateX(-100%); /* Firefox bug fix */
 transform: translateX(-100%); 
 }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.