svga / SVGAPlayer-Web

Similar to Lottie. Render After Effects / Animate CC (Flash) animations natively on Android and iOS, Web. 使用 SVGAPlayer 在 Android、iOS、Web中播放 After Effects / Animate CC (Flash) 动画。
https://svga.io
Apache License 2.0
954 stars 239 forks source link

在帧事件的回调中播放另一段动画时会有一帧是透明的 #69

Open jigelang opened 5 years ago

jigelang commented 5 years ago

this._player.setVideoItem(videoItem); this._player.loops = 1; this._player.startAnimation() this._player.onFrame((frame)=>{ if(frame == 21){ this._player.loops = 0; this._player.startAnimationWithRange({ location: 22, length: 23 }) } })

这么写在回调时会透明一帧。

it will cause the animation has a transparent frame