Answer the question
In order to leave comments, you need to log in
How to set the same Lottie animation to different containers?
For some reason, this code does not insert animation into the second container element?
var params = {
container: document.getElementById('lottie'),
renderer: 'svg',
loop: true,
autoplay: true,
animationData: animationData
};
var param = {
container: document.querySelector('.lottie'),
renderer: 'svg',
loop: true,
autoplay: true,
animationData: animationData
};
var anim = lottie.loadAnimation(params, param);
anim.setSpeed(0.04)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question