A-Frame Moving Camera

by Eduardo Flores

HTML

<script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>

    <a-scene>
      <a-box color="#6173F4" opacity="0.8" depth="2" position="0 0 -15"></a-box>
      <a-sky color="#EDECEC"></a-sky>
      <a-entity camera position="0 1.6 0">
        <a-animation attribute="position"
                dur="2000"
                easing="linear"
                to="0 1.6 -10"></a-animation>
      </a-entity>
    </a-scene>