<!DOCTYPE html>
<html>
  <head>
    <title>Sound - 02 - Moving</title>
    <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
    <script src="../js/livecode.js"></script>
  </head>
  <body>
    <a-scene background="color:lightblue">
      <a-assets>
        <audio
          id="musicbox"
          src="https://cdn.glitch.com/80978ab7-9db6-45ae-bc43-4fab16bdbb6e%2Fbaby-music-box_daniel-simion.mp3?1524832969017"
        ></audio>
      </a-assets>

      <a-entity
        position="0 1.6 0"
        animation="property: rotation; to: 0 360 0; dur: 15000; easing:linear"
      >
        <a-box position="0 0 -2" color="#ff0000">
          <a-sound autoplay="true" loop="true" src="#musicbox"></a-sound>
        </a-box>
      </a-entity>

      <a-camera>
        <a-cursor></a-cursor>
      </a-camera>
    </a-scene>
  </body>
</html>