<!-- Copyright Magic Leap, Inc. 2018.-->
<!-- You may reuse the code below, but not the visual assets themselves.-->

        <ml-model
              id="birdModel" src="turkey/turkey4.fbx"
              materials="kmat: turkey/turkey.kmat; textures: turkey/turkey_baseColor.png turkey/turkey_Normal.png turkey/turkey_Roughness.png;"
              model-scale="0 0 0"
              model-position="0 -150 -250"
              scale-to="axes: 0.5 0.5 0.5; duration: 6s; track: 1;"
              move-by="axes: 0 100px 270px; duration: 7s; track: 2;"
              model-animation="walking, false, -1">
        </ml-model>
        <script>
        // Listen for transform animation end event.
              birdModel.addEventListener('transform-animation-end', (e) => {
        // Play animation and sound when "Moveby" transform animation is finished.
                if (e.detail.track === 2) {
                     walking1.pause();
                     spotted1.play();
                     birdModel.animation = "spotted, false, 1";
                  }
              });
        </script>