I want put animation font in my web site with the plugin "bodymovin" (this pricipe is transform json files in svg), i use framework laravel. I have follow this example : https://codepen.io/airnan/project/editor/ZeNONO
I manage to find my file, an importer my js, I have this error when I want to display my json I do not see what it is? I have forgot something ?
Uncaught TypeError: keyData.e is undefined
And this is my js code :
import Bodymovin from 'bodymovin';
export default class Homepage {
constructor(options) {
this.animation = document.querySelector('.js-animation');
if (this.animation) {
this.initAnimation();
}
initAnimation() {
Bodymovin.loadAnimation({
container: this.animation,
renderer: 'svg',
loop: true,
autoplay: true,
path: './img/displacement-header/data-animation.json',
});
}