<div class="marquee">
  <div class="inner">
    <p class="text">
      <span>Live without regrets</span>
      <span>Live without regrets</span>
      <span>Live without regrets</span>
      <span>Live without regrets</span>
      <span>Live without regrets</span>
    </p>
    <p class="text">
      <span>Live without regrets</span>               <span>Live without regrets</span>
      <span>Live without regrets</span>
      <span>Live without regrets</span>
      <span>Live without regrets</span>
    </p>
  </div>
</div>
@import url(https://fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,regular,italic,500,500italic,700,700italic,900,900italic);

html {
  overflow-x: hidden;
  box-sizing: border-box;
  &.hidden {
    overflow-y: hidden;
  }
}
*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto";
  overflow: hidden;
  background-color: #000;
  color: #fff;
}

// --------- marquee ----------
.marquee {
  text-transform: uppercase;
  margin-top: 100px;
  margin-bottom: 70px;
  margin-right: 15px;
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.9);
  word-spacing: 15px;
  white-space: nowrap;
  width: 100%;
  position: relative;
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(124, 1, 199, 0.5);
  }
  &::before {
    transform: rotate(-1deg);
    z-index: -1;
  }
  &::after {
    transform: rotate(-2deg);
    z-index: -2;
  }
  .inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    background-color: #7c01c7;
    position: relative;
    z-index: 0;
    overflow: hidden;
  }
  .text {
    width: 200%;
    animation: animate 40s linear infinite;
    animation-delay: -40s;
    padding-right: 20px;
  }
  .text:nth-child(2) {
    width: 200%;
    animation: animate2 40s linear infinite;
    animation-delay: -20s;
  }
  .text:nth-child(1) {
    span:nth-child(even) {
      color: #7c01c7 !important;
      text-shadow: 1px 0 1px rgba(255, 255, 255, 0.9),
        0 1px 1px rgba(255, 255, 255, 0.9), -1px 0 1px rgba(255, 255, 255, 0.9),
        0 -1px 1px rgba(255, 255, 255, 0.9);
    }
  }
  .text:nth-child(2) {
    span:nth-child(odd) {
      color: #7c01c7 !important;
      text-shadow: 1px 0 1px rgba(255, 255, 255, 0.9),
        0 1px 1px rgba(255, 255, 255, 0.9), -1px 0 1px rgba(255, 255, 255, 0.9),
        0 -1px 1px rgba(255, 255, 255, 0.9);
    }
  }
  &:hover {
    .text {
      animation-play-state: paused;
    }
  }

  @keyframes animate {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  @keyframes animate2 {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-200%);
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.