File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/taro-ui/src/components/noticebar Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default class AtNoticebar extends React.Component<
2525 animationData : {
2626 actions : [ { } ]
2727 } ,
28- dura : 15 ,
28+ dura : 0 ,
2929 isWEAPP : Taro . getEnv ( ) === Taro . ENV_TYPE . WEAPP ,
3030 isALIPAY : Taro . getEnv ( ) === Taro . ENV_TYPE . ALIPAY ,
3131 isWEB : Taro . getEnv ( ) === Taro . ENV_TYPE . WEB
@@ -135,8 +135,13 @@ export default class AtNoticebar extends React.Component<
135135 const innerClassName = [ 'at-noticebar__content-inner' ]
136136 if ( marquee ) {
137137 close = false
138- style [ 'animation-duration' ] = `${ dura } s`
139138 innerClassName . push ( animElemId )
139+ style [ 'animation-delay' ] = '3s'
140+
141+ if ( dura > 0 ) {
142+ style [ 'animation-duration' ] = `${ dura } s`
143+ style [ 'animation-delay' ] = '1s'
144+ }
140145 }
141146
142147 const classObject = {
You can’t perform that action at this time.
0 commit comments