lojk-ui
Version:
lojk vue ui components library
53 lines (52 loc) • 1.14 kB
CSS
.lotus-notice {
width: 100%;
margin: 0 auto;
overflow: hidden;
}
.lotus-notice-bar {
position: relative;
/*display: -webkit-box;
display: -webkit-flex;*/
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-start;
}
.lotus-notice-icon {
display: block;
width: 0.53333333rem;
height: 0.53333333rem;
}
.lotus-notice-content {
overflow: hidden;
margin-left: 0.13333333rem;
flex: 3;
}
.lotus-notice-text {
padding-left: 100%;
display: inline-block;
-webkit-animation: md-notice-bar-animation 16s linear infinite both;
animation: md-notice-bar-animation 16s linear infinite both;
white-space: nowrap;
font-size: 0.37333333rem;
}
@-webkit-keyframes md-notice-bar-animation {
0% {
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
to {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
@keyframes md-notice-bar-animation {
0% {
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
to {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}