Newer
Older
renshu-2021 / SWAN / wild_bird_WebVR2.html
@KAOKA Daisuke KAOKA Daisuke on 18 Dec 2021 1 KB change link
<!DOCTYPE html>
<html>
  <head>
    <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
    <title> a-frame 360 image </title>
  </head>
  <body>
    <a-scene>
      <a-sky src="B.jpeg" rotation="0 100 0"></a-sky>
      <a-camera  position = "0 0 0" >
      <a-entity cursor="fuse: true; fuseTimeout:1000" position="0 0 -1" geometry="primitive: ring" scale="0.03 0.03 0.03" material="color: red; shader: flat"></a-entity>
      <a-animation begin="cursor-fusing" easing="ease-in" attribute="scale" fill="none" from="0.03 0.03 0.03" to="0.001 0.001 0.001"></a-animation>
      </a-camera>
       <a-sphere position="5 2 -7" color="green" id="WebVR">
       </a-sphere>
       <script type="text/javascript">
       <!--
       var clickElement = document.getElementById('WebVR');
       clickElement.addEventListener("click", function() {
       location.href = "https://www.yatex.org/gitbucket/SKIP/renshu-2021/pages/SWAN/prototype1-1.html";
       }, false);
       // -->
       </script>
    </a-scene>
  </body>
</html>