小编Mar*_*ube的帖子

如何删除anime.js中的元素?

我是 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)

javascript animation anime.js

3
推荐指数
1
解决办法
7008
查看次数

How to use anime.js ( or any external library ) in a Vue-Cli project?

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.

my animate.js file 我的 animate.js 文件

how I tried to link my animate file with my component 我如何尝试将我的动画文件与我的组件链接起来

webpack vue.js vue-cli anime.js

2
推荐指数
1
解决办法
4226
查看次数

标签 统计

anime.js ×2

animation ×1

javascript ×1

vue-cli ×1

vue.js ×1

webpack ×1