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