Closed waqq closed 3 years ago
看到构造函数的参数中可传width和height,传入后无效
截图是文档中的lottie动画 设置了宽高都是100 文档:https://eva-engine.gitee.io/#/tutorials/lottieAnimation 代码:const lottieComponent = new Lottie({ resource: 'homeBg1', width: 100, height: 100 });
使用scale来调整尺寸
看到构造函数的参数中可传width和height,传入后无效
截图是文档中的lottie动画 设置了宽高都是100 文档:https://eva-engine.gitee.io/#/tutorials/lottieAnimation 代码:const lottieComponent = new Lottie({ resource: 'homeBg1', width: 100, height: 100 });