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) 动画。
let parser = new SVGA.Parser()
let player = new SVGA.Player(wx.createSelectorQuery().in(this).select("#myCanvas"))
setTimeout(() => {
parser.load("https://cdn.jsdelivr.net/gh/svga/SVGA-Samples@master/angel.svga", function (videoItem) {
player.setVideoItem(videoItem);
player.startAnimation();
})
}, 1000)
Cannot read property 'requestAnimationFrame' of undefined
Cannot read property 'requestAnimationFrame' of undefined