[bugfix] NoticeBar text disappeared when page back (#280)

* [bugfix] CouponList always show empty info

* [bugfix] add click feedback of buttons in components

* [Doc] add custom theme document

* [new feature] Notice bar support more props

* [bugfix] PullRefresh test cases

* [bugfix] unused NoticeBar style

* [bugfix] Swipe width calc error

* [Doc] english document of all action components

* [Doc] change document site path to /zanui/vant

* [Doc] fix

* [bugfix] uploader style error

* [bugfix] tabs document demo

* [new feature] Cell support vue-router target route

* [bugfix] add cell test cases

* update yarn.lock

* [bugfix] Tabbar cann't display info when use icon slot

* [Doc] update document title

* [bugfix] Dialog should reset button text when showed

* [new feature] CouponList add showCloseButton prop

* [new feature] Swipe add 'initialSwipe' prop

* [bugfix] NoticeBar text disappeared when page back
This commit is contained in:
neverland
2017-11-03 07:13:18 -05:00
committed by GitHub
parent 74a3eea203
commit 3f7985ed2e
3 changed files with 38 additions and 18 deletions

View File

@@ -32,7 +32,6 @@
position: absolute;
font-size: 15px;
line-height: 1;
cursor: pointer;
}
&__content-wrap {
@@ -45,6 +44,24 @@
&__content {
position: absolute;
white-space: nowrap;
transition: all linear;
}
&__play {
animation: van-notice-bar-play linear both;
}
&__play--infinite {
animation: van-notice-bar-play-infinite linear infinite both;
}
}
/**
* Declare two same keyframes
* In case that some mobile browsers can continue animation when className changed
*/
@keyframes van-notice-bar-play {
to { transform: translate3d(-100%, 0, 0) }
}
@keyframes van-notice-bar-play-infinite {
to { transform: translate3d(-100%, 0, 0) }
}