40 lines
710 B
CSS
40 lines
710 B
CSS
.notice-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
background-color: #FFFACD;
|
|
border-top: 1px solid #D4B000;
|
|
z-index: 9999;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.notice-content-container {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.notice-content {
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
padding-left: 100%;
|
|
animation: scroll-left 15s linear infinite;
|
|
}
|
|
|
|
.notice-btn {
|
|
padding: 0 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@keyframes scroll-left {
|
|
0% {
|
|
transform: translateX(0);
|
|
}
|
|
100% {
|
|
transform: translateX(-100%);
|
|
}
|
|
} |