User:4erospace/common.css: Difference between revisions
CSS test |
m CSS test |
||
Line 1: | Line 1: | ||
.marquee { | |||
margin: 0 auto; | |||
white-space: nowrap; | |||
overflow: hidden; | overflow: hidden; | ||
position: absolute; | |||
} | |||
.marquee span { | |||
display: inline-block; | |||
padding-left: 100%; | |||
animation: marquee 5s linear infinite; | |||
} | } | ||
.marquee2 span { | |||
animation | animation-delay: 2.5s; | ||
} | } | ||
Line 19: | Line 23: | ||
transform: translate(-100%, 0); | transform: translate(-100%, 0); | ||
} | } | ||
} | } |
Revision as of 05:57, 17 June 2025
.marquee {
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
position: absolute;
}
.marquee span {
display: inline-block;
padding-left: 100%;
animation: marquee 5s linear infinite;
}
.marquee2 span {
animation-delay: 2.5s;
}
@keyframes marquee {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(-100%, 0);
}
}