forked from youmustfight/aframe-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (42 loc) · 2.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ngAFrame</title>
<link rel="stylesheet" type="text/css" href="public/style.css" />
<meta name="viewport" content="width=device-width" initial-scale="1.0" maximum-scale="1.0" minimum-scale="1.0">
</head>
<script type="text/javascript" src="https://aframe.io/releases/latest/aframe.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.js"></script>
<script type="text/javascript" src="public/main.js"></script>
<body ng-app="ngAFrame">
<!-- Wrapper for Managing Scope -->
<div ng-controller="NgASceneController" ng-switch="subview">
<!-- AFRAME Scene Starts -->
<a-scene ng-a-scene fog="type: linear; color: #240B57; far: 21; near: 4" >
<a-camera ng-a-camera cursor-visible="true" position="-1 10 8" rotation="-10 -72 0" wasd-controls="false"></a-camera>
<!-- Scenes -->
<ng-a-image ng-switch-when="scene1" img="public/images/cardboard.png"></ng-a-image>
<ng-a-image ng-switch-when="scene2" img="public/images/google-play.png"></ng-a-image>
<ng-a-image ng-switch-when="scene3" img="public/images/oculus.png"></ng-a-image>
<!-- Buttons -->
<a-image ng-a-button="scene1" position="6.5 7 3.2" rotation="0 -90 0" src="public/images/cardboard.png" width="0.8" height="0.5" >
<a-animation attribute="visible" from="false" to="true" begin="100" dur="1" fill="both"></a-animation>
<a-animation attribute="scale" from="0 0 0" to="1.8 1.8 1.8" begin="1500" dur="350" fill="both" easing="ease-out"></a-animation>
</a-image>
<a-image ng-a-button="scene2" position="6.5 7 5.2" rotation="0 -90 0" src="public/images/google-play.png" width="0.45" height="0.5" >
<a-animation attribute="visible" from="false" to="true" begin="100" dur="1" fill="both"></a-animation>
<a-animation attribute="scale" from="0 0 0" to="1.8 1.8 1.8" begin="1650" dur="350" fill="both" easing="ease-out"></a-animation>
</a-image>
<a-image ng-a-button="scene3" position="6.5 7 6.9" rotation="0 -90 0" src="public/images/oculus.png" width="0.8" height="0.5" >
<a-animation attribute="visible" from="false" to="true" begin="100" dur="1" fill="both"></a-animation>
<a-animation attribute="scale" from="0 0 0" to="1.8 1.8 1.8" begin="1800" dur="350" fill="both" easing="ease-out"></a-animation>
</a-image>
<pillars-template></pillars-template>
<all-the-pillars></all-the-pillars>
<!-- Sky -->
<a-sky color="#EDE4FD"></a-sky>
</a-scene>
</div>
</body>
</html>