简体   繁体   English

如何使用 javascript 创建和框架实体 animation

[英]how to use javascript to create and aframe entity with animation

syntax please for <animation... and properties when using javascript setAttribute( I tried obj.setAttribute("animation",value) and all sort of different values: position, begin, end, nothing works I can get animation to work with no problem declaratively but not programatically ie create.element(a-box with with animation当使用 javascript setAttribute( 我尝试了 obj.setAttribute("animation",value) 和各种不同的值:position,开始,结束,没有任何工作我可以让 Z6F1C25ED1523962F1BBF9DEE 工作以声明方式但不是以编程方式出现问题,即 create.element(a-box with with animation

Share runnable code with your attempt or it will be hard to help.与您的尝试共享可运行代码,否则将很难提供帮助。 Glitch is a great option https://glitch.com/~aframe故障是一个很好的选择https://glitch.com/~aframe

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

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