To create a sliding text effect that remains consistent even if the text is known and never changes, you can utilize CSS3 properties such as transition, text-shadow, and text-indent. Here's an example:
p {
text-shadow:35em 0 0; /* equal to length of text */
width:15em;
white-space:nowrap;
overflow:hidden;
animation: marqueeme 3s infinite;
margin:auto;
background:yellow;
border:solid red;
}
@keyframes marqueeme {
to {
text-indent:-35em;
}
}
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
See and test it :
http://codepen.io/gc-nomade/pen/wGtmy
When implementing this effect, remember to use EM values that match the text size and consider resetting letter-spacing to prevent potential issues with font changes.