简体   繁体   English

如何控制A帧中动画的速度?

[英]How to control the speed of an animation in a-frame?

 <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> 

I was making a project on web VR using a-frame and there I am facing a particular problem of controlling the speed of my animation effects. 我当时正在使用a-frame在Web VR上进行项目,在那里我面临着控制动画效果速度的特殊问题。 Does anyone have a clue? 有人有线索吗? Here was the animation speed I was trying to control: 这是我试图控制的动画速度:

Just try to make the duration longer/shorter with the dur: time[ms] attribute: 只需尝试使用dur: time[ms]属性使持续时间更长或更短:

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

Feel free to check out the docs . 随时检查文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM