Tuesday 29 June 2021

A-frame multiple animations with camera

I have some code for a camera using A-frame (https://aframe.io) and I'm wondering how I can add multiple sequential animations. I would like it so that when my first animation is finished, another animation will trigger and the camera will move 5 spaces to the left after the first animation is complete. How can this be done? My current code:

  <a-entity id="rig" position="0 1.6 0"  animation="property: position; delay: 2000; dur: 7000; easing: linear; to: 0 1.6 -25" >
  <a-entity id="camera" wasd-controls camera look-controls></a-entity>
</a-entity>


from A-frame multiple animations with camera

No comments:

Post a Comment