import lottie from 'lottie-web';
lottie.loadAnimation({
container: document.getElementById('制定的dom节点'),
renderer: 'svg',
loop: true,
autoplay: true,
path: 'json文件的路径', // 如果是实体json 需要换另外一个参数
});
import lottie from 'lottie-web';
lottie.loadAnimation({
container: document.getElementById('制定的dom节点'),
renderer: 'svg',
loop: true,
autoplay: true,
path: 'json文件的路径', // 如果是实体json 需要换另外一个参数
});