我有一个按钮,我想要在同一时间播放两个动画(如果可能的话,在他们之间1秒),当我点击它。动画是用animeJS制作的。按钮代码<button type="button" id="button2">Press to start</button> var animate1 = anime({
targets
我的愿望是使用Threejs库(还没有问题!)和Animejs库的花哨时间线动画功能。昨天花了一整天努力让它开始工作(你知道的:打开30+选项卡)。我遵循了Animejs文档中的说明,import anime from 'animejs/lib/anime.es.js';
..。但是我现在有了一个新的问题:当我声明一个新的动画(下面的示例代码来自Animejs的文档)
基本上,我有一个'animejs‘动画触发器,当点击导航按钮,然后相同的动画将在第二次点击后反转。它会切换。现在,在更新animejs后,这不再起作用。我尝试使用一个变量,比如var playing = true;并在这两个变量之间切换,但它不具备与以前相同的功能。methods within the onclick function and it would toggle between them but that no longer is the case with animejs<