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<
25
25
animationData : {
26
26
actions : [ { } ]
27
27
} ,
28
- dura : 15 ,
28
+ dura : 0 ,
29
29
isWEAPP : Taro . getEnv ( ) === Taro . ENV_TYPE . WEAPP ,
30
30
isALIPAY : Taro . getEnv ( ) === Taro . ENV_TYPE . ALIPAY ,
31
31
isWEB : Taro . getEnv ( ) === Taro . ENV_TYPE . WEB
@@ -135,8 +135,13 @@ export default class AtNoticebar extends React.Component<
135
135
const innerClassName = [ 'at-noticebar__content-inner' ]
136
136
if ( marquee ) {
137
137
close = false
138
- style [ 'animation-duration' ] = `${ dura } s`
139
138
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
+ }
140
145
}
141
146
142
147
const classObject = {
You can’t perform that action at this time.
0 commit comments