bux23
11/22/2017 - 11:06 AM

css marquee

<div class="woptima-marquee" style="background-color: blue;color: white;">
  <span class="orig" style="-webkit-animation-duration: 5s; animation-duration: 5s;">
    Demo text content, Demo text content, Demo text content
    <span class="copia">
      Demo text content, Demo text content, Demo text content
    </span>
  </span>
</div>
.woptima-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-left: 100px;
  height: 80px;
  white-space: nowrap;
  font-family: $font-family;
  font-size: 36px;
  line-height: 38px;
  .orig {
    height: 80px;
    line-height: 80px;
    display: inline-block; 
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transform: translatex(0); 
    animation-name: marqueeLeft;
    animation-timing-function: linear;
    animation-direction: normal;
    animation-iteration-count: infinite;
    &:hover, &:focus {
      animation-play-state: paused;
    }
  }
  .marquee-item {
    margin-right: 20px;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    .date {
      margin-right: 10px;
      -webkit-font-smoothing: antialiased;
      padding: 5px 15px;
      background: #d1fffa;
    }
    .title {
      font-weight: 600;
      a {
        color: white !important;
        -webkit-font-smoothing: antialiased;
        &:first-letter {
          text-transform: capitalize;
        }
      }
    }
    i {
      font-size: 14px;
      vertical-align: middle;
      color: $red;
      margin-left: 20px;
    }
  }
  &:before {
    content: "AVVISI";
    position: absolute;
    top: 0;
    bottom: 0;
    left:0;
    width: 190px;
    background: $red;
    z-index: 999;
    line-height: 80px;
    text-align: left;
    padding-left: 25px;
    color: white;
  }
  &:after {
    font-family: "fontawesome";
    content: "\f178";
    position: absolute;
    top: 0;
    bottom: 0;
    left:0;
    width: 190px;
    z-index: 999;
    line-height: 80px;
    text-align: right;
    padding-right: 25px;
    color: white;
  }
}