<div class="marquee">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
</div>
body {
  margin: 2em;
}
.marquee {
  padding: 1em 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  overflow-x: hidden;
}
.marquee p {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee:hover p {
  animation-play-state: paused;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    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.