xrforge/clients/webxr/xrforge.html

44 lines
760 B
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body{
background: #555;
height: 100%;
margin: 0;
overflow: hidden;
padding: 0;
width: 100%;
}
img#btn_play:hover {
opacity: 1.0;
}
img#btn_play {
position: fixed;
top: 50%;
left: 50%;
width:30%;
max-width:400px;
transform: translate(-50%,-50%);
cursor: pointer;
opacity: 0.6;
transition: 0.3s;
z-index: 999;
}
</style>
</head>
<body>
<img id="btn_play" src="viewer/play.svg"/>
<a-scene>
<a-entity id="player" animation-mixer_disabled gltf-model></a-entity>
</a-scene>
<script type="module" src="aframe/index.js"></script>
</body>
</html>