Шаблон:Бегущая строка/styles.css: различия между версиями
Aeonorien (обсуждение | вклад) Нет описания правки |
Aeonorien (обсуждение | вклад) Нет описания правки |
||
| Строка 3: | Строка 3: | ||
white-space: nowrap; | white-space: nowrap; | ||
width: 100%; | width: 100%; | ||
height: 1.8em; | |||
line-height: 1.8em; | |||
position: relative; | |||
} | } | ||
.marquee | |||
.marquee span { | |||
position: absolute; | |||
left: 0; | |||
top: 0; | |||
white-space: nowrap; | |||
color: #eaeaea; | color: #eaeaea; | ||
animation: scroll 15s linear infinite; | |||
opacity: 0; | |||
} | } | ||
@keyframes | |||
0% { transform: translateX( | .marquee span:nth-child(1) { animation-delay: 0s; } | ||
100% { transform: translateX(- | .marquee span:nth-child(2) { animation-delay: 15s; } | ||
.marquee span:nth-child(3) { animation-delay: 30s; } | |||
.marquee span:nth-child(4) { animation-delay: 45s; } | |||
.marquee span:nth-child(5) { animation-delay: 60s; } | |||
@keyframes scroll { | |||
0% { | |||
transform: translateX(100%); | |||
opacity: 1; | |||
} | |||
70% { | |||
transform: translateX(-110%); | |||
opacity: 1; | |||
} | |||
71%, 100% { | |||
transform: translateX(-110%); | |||
opacity: 0; | |||
} | |||
} | } | ||