如何使用“更改圆柱体的高度?”;a-animation;?
我想在如何使用“更改圆柱体的高度?”;a-animation;?,animation,aframe,Animation,Aframe,我想在a帧上增加圆柱体的高度作为动画 如何实现这一点?我会使用ngoKevins: 1) 为比例设置动画: animation__scale="property: scale; dir: alternate; dur: 200; easing: easeInSine; loop: true; to: 1 2 1" 2) 或设置高度动画: animation__height="property: height; dir: alternate; dur
a帧
上增加圆柱体
的高度作为动画
如何实现这一点?我会使用ngoKevins:
1) 为比例设置动画:
animation__scale="property: scale; dir: alternate; dur: 200;
easing: easeInSine; loop: true; to: 1 2 1"
2) 或设置高度动画:
animation__height="property: height; dir: alternate; dur: 200;
easing: easeInSine; loop: true; to: 3"
小提琴。
使用
你试过什么吗?
<a-animation attribute="scale"
dur="1000"
direction="alternate"
to="1 2 1"
repeat="indefinite"></a-animation>
<a-animation attribute="height"
dur="1000"
direction="alternate"
to="3"
repeat="indefinite"></a-animation>