Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.animationFn = () => {
shownDialogBubbles.push(speechBubbleDiv)
return anime
.timeline({
autoplay: false
})
.add({
targets: `#${this.id}`,
opacity: 1,
duration: 100,
easing: 'easeInOutQuart'
})
.add({
targets: `#${this.id} .letter`,
opacity: 1,
duration: 20,
delay: anime.stagger(textDuration / letters, { easing: 'linear' }),
easing: 'easeOutQuad'
})