有没有一种方法将多个Lottie动画合并为一个?
我尝试了https://github.com/LottieFiles/lottie-js但失败了。
上述库提供了足够好的API来操作现有元素,但不允许组合动画。
是否有其他JavaScript库可以实现这一点?
LottieInteractivity.create({
player: '#chainLoadPlayer',
mode: 'chain',
actions: [
{
state: 'autoplay',
transition: 'onComplete',
path: 'URL'
},
{
state: 'autoplay',
transition: 'onComplete',
path: 'URL'
},
{
state: 'autoplay',
transition: 'onComplete',
path: 'URL',
reset: true
}
]
});