Closed proto1994 closed 3 years ago
多谢指出代码中的不足
优化了下代码,并且增加动画循环后停留时长
this.animationLayer.update({
options: {
animateTime: 100,
fillStyle: '#0087f6',
size: 3,
isRound: true, // 是否往返
times: 2, // 动画次数
stayTime: 2000, // 动画循环完一次后 停留两秒在继续
},
});
因业务需求,需要在迁徙动画中增加往返和动画次数功能
效果入下视频所示
https://user-images.githubusercontent.com/12874077/104403735-22a9b480-5594-11eb-8e17-04183d383ad7.mp4