Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
this._options = {
container: this.lavContainer.nativeElement,
renderer: 'svg',
loop: this.options.loop !== false,
autoplay: this.options.autoplay !== false,
animationData: this.options.animationData,
path: this.options.path || ''
};
this.viewWidth = this.width + 'px' || '100%';
this.viewHeight = this.height + 'px' || '100%';
let anim = bodymovin.loadAnimation(this._options);
this.animCreated.emit(anim);
}
}
loadAnimation() {
this.animation = bodymovin.loadAnimation({
animationData,
container: document.getElementById('lottie'),
renderer: 'svg',
loop: true,
autoplay: true,
name: 'unsafe',
})
},
goToHelp() {