Special html item - Marquee

With these codes you can create a marquee effect.

Base code

1

Create a HTML layer and put these codes into the HTML field:

<div class="marquee">
  <div>
    <span>Here comes my first sentence.</span>
  </div>
</div>
	
2

And put these codes to the CSS field:

.marquee {
    height: 30px;    
    overflow: hidden;
    position: relative;
}
.marquee div {
    display: block;
    width: 200%;
    height: 30px;
    
    position: absolute;
    overflow: hidden;
    
    -webkit-animation: marquee 4s linear infinite;
    -moz-animation: marquee 4s linear infinite;
    -ms-animation: marquee 4s linear infinite;
    -o-animation: marquee 4s linear infinite;
    animation: marquee 4s linear infinite;
}
.marquee span {
    float: left;
    width: 50%;
}
    
@-webkit-keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}
@-moz-keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}
@-ms-keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}
@-o-keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}
@keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}