UNPKG

lojk-ui

Version:

lojk vue ui components library

56 lines (51 loc) 1.14 kB
@import (reference) '../../style/config.less'; @import (reference) '../../style/set1Px.less'; @register: lotus-notice; .@{register} { width:100%; margin:0 auto; overflow: hidden; &-bar{ position: relative; .flex(); .flex-hvc(); justify-content: flex-start; } &-icon{ display: block; .width(40); } &-content{ overflow: hidden; .marginLeft(10); .flexN(3); } &-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; .fontSize(28); } } @-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) } }