【问题标题】:How to control the speed of an animation in a-frame?如何控制一帧动画的速度?
【发布时间】:2018-01-15 05:26:50
【问题描述】:

<a-camera id="view">
              <a-animation attribute="position" from="30 30 30" to="-1 1.5 -2" delay="100"></a-animation>
              <a-cursor color="black"/>
  </a-camera>

我正在使用 a-frame 在 web VR 上制作一个项目,并且在控制动画效果的速度方面遇到了一个特殊问题。有人有线索吗?这是我试图控制的动画速度:

【问题讨论】:

  • 您的问题应提供(可重现的)代码示例,说明您尝试过的内容以及问题所在。

标签: javascript html three.js aframe webvr


【解决方案1】:

只需尝试使用dur: time[ms] 属性使持续时间更长/更短:

<a-animation attribute="position" from="30 30 30" to="-1 1.5 -2" delay="100" 
dur="2000"></a-animation>

随时查看docs

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-14
    • 1970-01-01
    • 2017-10-23
    • 2019-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-13
    相关资源
    最近更新 更多