我是 Anime.js 的初学者。我对某些内容进行动画处理,动画完成后我想删除正在设置动画的元素。
动画效果完美。我只是无法删除正在工作的元素,而且我不想隐藏它
logoTimeline
.add({
targets: text1,
duration: 700,
delay: function(el, index) { return index*50; },
opacity: 1,
easing: 'easeOutCirc',
translateX: function(el, index) {
return [(-50+index*10),0]
},
offset:0
})
.add({
remove:text1
})
Run Code Online (Sandbox Code Playgroud) I installed Anime.js with npm as a dependencie to my project. Now i have a java script file "animate" where I have my anime code. How to link my component with my animate file to make the magic happen ? thanks for reading.