@keyframes slide { from { left: 100%; transform: translate(0, 0); } to { left: -100%; transform: translate(-100%, 0); } } @-webkit-keyframes slide { from { left: 100%; transform: translate(0, 0); } to { left: -100%; transform: translate(-100%, 0); } } .marquee { background: transparent; color: #fff; width: 100%; height: 28px; line-height: 28px; overflow: hidden; position: relative; } .text { font-family: 'Work Sans', sans-serif; white-space: nowrap; height: 28px; font-size: 16px; /*animation-name: slide; animation-duration: 30s; animation-timing-function: linear; animation-iteration-count: infinite; -webkit-animation-name: slide; -webkit-animation-duration: 30s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite;*/ } .messpad { padding: 0 0 0 50px; } .yeltel { color: #ffeb79; } #maindiv { border: 2px solid black; overflow: hidden; white-space: nowrap; position: relative; } #div1 { display: inline-block; animation: marquee 30s linear infinite; } #div1st{ display: inline-block; position: absolute; animation: marqueest 30s linear; transform: translateX(-200%); } #div2 { display: inline-block; animation: marquee2 30s linear infinite; animation-delay: 15s; } @keyframes marqueest { from { transform: translateX(0%); } to { transform: translateX(-200%); } } @keyframes marquee { from { transform: translateX(100%); } to { transform: translateX(-100%); } } @keyframes marquee2 { from { transform: translateX(0%); } to { transform: translateX(-200%); } }