|
5 | 5 | <title>Anime UI</title> |
6 | 6 | <meta name="description" content="Anime UI — A-Frame"> |
7 | 7 | <script src="../../../dist/aframe-master.js"></script> |
| 8 | + <script src=" https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js" ></script> |
8 | 9 | </head> |
9 | 10 | <body> |
10 | 11 | <a-scene renderer="colorManagement: true;"> |
11 | 12 | <a-assets> |
12 | 13 | <a-asset-item id="engine" src="models/engine.glb"></a-asset-item> |
13 | 14 | <a-mixin id="image" geometry="height: 2; width: 2"></a-mixin> |
14 | | - <a-mixin id="toggleAnimation" animation="property: visible; from: false; to: true; dur: 1" visible="false"></a-mixin> |
| 15 | + <a-mixin id="delayVisible" event-set__loaded="visible: true" visible="false"></a-mixin> |
15 | 16 | <audio id="blip1" src="audio/321103__nsstudios__blip1.wav"></audio> |
16 | 17 | <audio id="blip2" src="audio/321104__nsstudios__blip2.wav"></audio> |
17 | 18 | <img id="glow1" src="img/glow1.png"> |
|
41 | 42 |
|
42 | 43 | <a-entity id="wall-lights" position="-7.25 1.5 2.9" rotation="0 90 0" scale="1.25 1.25 1.25"> |
43 | 44 | <a-entity position="0 0 0" scale="0.05 0.05 0.05"> |
44 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 350"></a-plane> |
| 45 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 350"></a-plane> |
45 | 46 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
46 | 47 | </a-entity> |
47 | 48 |
|
48 | 49 | <a-entity position="1 0 0" scale="0.05 0.05 0.05"> |
49 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 400"></a-plane> |
| 50 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 400"></a-plane> |
50 | 51 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
51 | 52 | </a-entity> |
52 | 53 |
|
53 | 54 | <a-entity position="2 0 0" scale="0.05 0.05 0.05"> |
54 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 450"></a-plane> |
| 55 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 450"></a-plane> |
55 | 56 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
56 | 57 | </a-entity> |
57 | 58 |
|
58 | 59 | <a-entity position="3 0 0" scale="0.05 0.05 0.05"> |
59 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 500"></a-plane> |
| 60 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 500"></a-plane> |
60 | 61 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
61 | 62 | </a-entity> |
62 | 63 |
|
63 | 64 | <a-entity position="4 0 0" scale="0.05 0.05 0.05"> |
64 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 550"></a-plane> |
| 65 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 550"></a-plane> |
65 | 66 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
66 | 67 | </a-entity> |
67 | 68 |
|
68 | 69 | <a-entity position="5 0 0" scale="0.05 0.05 0.05"> |
69 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 600"></a-plane> |
| 70 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 600"></a-plane> |
70 | 71 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
71 | 72 | </a-entity> |
72 | 73 |
|
73 | 74 | <a-entity position="6 0 0" scale="0.05 0.05 0.05"> |
74 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 650"></a-plane> |
| 75 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 650"></a-plane> |
75 | 76 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
76 | 77 | </a-entity> |
77 | 78 |
|
78 | 79 | <a-entity position="7 0 0" scale="0.05 0.05 0.05"> |
79 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 700"></a-plane> |
| 80 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 700"></a-plane> |
80 | 81 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
81 | 82 | </a-entity> |
82 | 83 |
|
83 | 84 | <a-entity position="8 0 0" scale="0.05 0.05 0.05"> |
84 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 750"></a-plane> |
| 85 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 750"></a-plane> |
85 | 86 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
86 | 87 | </a-entity> |
87 | 88 |
|
88 | 89 | <a-entity position="9 0 0" scale="0.05 0.05 0.05"> |
89 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 800"></a-plane> |
| 90 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 800"></a-plane> |
90 | 91 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
91 | 92 | </a-entity> |
92 | 93 |
|
93 | 94 | <a-entity position="10 0 0" scale="0.05 0.05 0.05"> |
94 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 850"></a-plane> |
| 95 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 850"></a-plane> |
95 | 96 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
96 | 97 | </a-entity> |
97 | 98 |
|
98 | 99 | <a-entity position="11 0 0" scale="0.05 0.05 0.05"> |
99 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 900"></a-plane> |
| 100 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 900"></a-plane> |
100 | 101 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
101 | 102 | </a-entity> |
102 | 103 |
|
103 | 104 | <a-entity position="12 0 0" scale="0.05 0.05 0.05"> |
104 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 950"></a-plane> |
| 105 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 950"></a-plane> |
105 | 106 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
106 | 107 | </a-entity> |
107 | 108 |
|
108 | 109 | <a-entity position="13 0 0" scale="0.05 0.05 0.05"> |
109 | | - <a-plane mixin="toggleAnimation" width="1" height="4" shader="flat" color="#B4E2F8" animation="delay: 1000"></a-plane> |
| 110 | + <a-plane mixin="delayVisible" width="1" height="4" shader="flat" color="#B4E2F8" event-set__loaded="_delay: 1000"></a-plane> |
110 | 111 | <a-plane width="6" height="4" color="#586266" opacity="0.6" position="0 0 -.01"></a-plane> |
111 | 112 | </a-entity> |
112 | 113 | </a-entity> |
113 | 114 |
|
114 | 115 | <a-entity id="schematic-2" position="0 0 -6" scale="0.7 0.7 0.7"> |
115 | | - <a-image mixin="image toggleAnimation" src="#glow1" scale="5 5 5" position="0 0 -2" animation="delay: 1500"></a-image> |
116 | | - <a-image mixin="image toggleAnimation" src="#ring2" scale="1.75 1.75 1.75" position="0 0 -1.2" animation="delay: 1400"></a-image> |
117 | | - <a-image mixin="image toggleAnimation" src="#ring5" scale="1.2 1.2 1.2" position="0 -1.5 -2.1" animation="delay: 1550"></a-image> |
118 | | - <a-image mixin="image toggleAnimation" src="#schematic5" scale="2 2 2" position="2.5 0 -1.02" opacity="0.75" animation="delay: 1500"></a-image> |
119 | | - <a-image mixin="image toggleAnimation" src="#schematic4" scale="1.5 1.5 1.5" position="0 -3 -1.01" rotation="0 0 90" opacity="0.75" animation="delay: 1500"></a-image> |
120 | | - <a-image mixin="image toggleAnimation" src="#schematic3" scale="1 1 1" position="0 2.7 -1" opacity="0.75" animation="delay: 1450"></a-image> |
121 | | - <a-image mixin="image toggleAnimation" src="#schematic1" scale="2 2 2" animation="delay: 1400"></a-image> |
122 | | - <a-image mixin="image toggleAnimation" src="#text2" scale=".5 .5 .5" position="-1 3 .02" animation="delay: 1350"></a-image> |
123 | | - <a-image mixin="image toggleAnimation" src="#text4" position="-2 -2 .03" animation="delay: 1300"></a-image> |
| 116 | + <a-image mixin="image delayVisible" src="#glow1" scale="5 5 5" position="0 0 -2" event-set__loaded="_delay: 1500"></a-image> |
| 117 | + <a-image mixin="image delayVisible" src="#ring2" scale="1.75 1.75 1.75" position="0 0 -1.2" event-set__loaded="_delay: 1400"></a-image> |
| 118 | + <a-image mixin="image delayVisible" src="#ring5" scale="1.2 1.2 1.2" position="0 -1.5 -2.1" event-set__loaded="_delay: 1550"></a-image> |
| 119 | + <a-image mixin="image delayVisible" src="#schematic5" scale="2 2 2" position="2.5 0 -1.02" opacity="0.75" event-set__loaded="_delay: 1500"></a-image> |
| 120 | + <a-image mixin="image delayVisible" src="#schematic4" scale="1.5 1.5 1.5" position="0 -3 -1.01" rotation="0 0 90" opacity="0.75" event-set__loaded="_delay: 1500"></a-image> |
| 121 | + <a-image mixin="image delayVisible" src="#schematic3" scale="1 1 1" position="0 2.7 -1" opacity="0.75" event-set__loaded="_delay: 1450"></a-image> |
| 122 | + <a-image mixin="image delayVisible" src="#schematic1" scale="2 2 2" event-set__loaded="_delay: 1400"></a-image> |
| 123 | + <a-image mixin="image delayVisible" src="#text2" scale=".5 .5 .5" position="-1 3 .02" event-set__loaded="_delay: 1350"></a-image> |
| 124 | + <a-image mixin="image delayVisible" src="#text4" position="-2 -2 .03" event-set__loaded="_delay: 1300"></a-image> |
124 | 125 | </a-entity> |
125 | 126 |
|
126 | 127 | <a-entity id="schematic-1" position="0 0 -3"> |
127 | | - <a-image mixin="image toggleAnimation" src="#schematic2" scale="0.7 0.7 0.7" animation="delay: 1200"></a-image> |
128 | | - <a-image mixin="image toggleAnimation" src="#text1" scale="0.2 0.2 0.2" position="2 0 .02" animation="delay: 1200"></a-image> |
129 | | - <a-image mixin="image toggleAnimation" src="#text3" scale="0.4 0.4 0.4" position="-1 1 .01" animation="delay: 1200"></a-image> |
| 128 | + <a-image mixin="image delayVisible" src="#schematic2" scale="0.7 0.7 0.7" event-set__loaded="_delay: 1200"></a-image> |
| 129 | + <a-image mixin="image delayVisible" src="#text1" scale="0.2 0.2 0.2" position="2 0 .02" event-set__loaded="_delay: 1200"></a-image> |
| 130 | + <a-image mixin="image delayVisible" src="#text3" scale="0.4 0.4 0.4" position="-1 1 .01" event-set__loaded="_delay: 1200"></a-image> |
130 | 131 | </a-entity> |
131 | 132 |
|
132 | 133 | <a-entity id="rings-group-3" position="0 0 -2" scale="0.5 0.5 0.5"> |
133 | | - <a-image mixin="image toggleAnimation" src="#ring3" scale=".8 .8 .8" animation="delay: 1000"></a-image> |
134 | | - <a-image mixin="image toggleAnimation" src="#ring5" scale=".9 .9 .9" position="0 0 .01" animation="delay: 1100"></a-image> |
135 | | - <a-image mixin="image toggleAnimation" src="#ring3" position="0 0 .02" animation="delay: 1100" |
| 134 | + <a-image mixin="image delayVisible" src="#ring3" scale=".8 .8 .8" event-set__loaded="_delay: 1000"></a-image> |
| 135 | + <a-image mixin="image delayVisible" src="#ring5" scale=".9 .9 .9" position="0 0 .01" event-set__loaded="_delay: 1100"></a-image> |
| 136 | + <a-image mixin="image delayVisible" src="#ring3" position="0 0 .02" event-set__loaded="_delay: 1100" |
136 | 137 | animation__scale="property: scale; from: 1 1 1; to: 1.2 1.2 1.2; delay: 1100; dur: 250; easing: easeOutCubic"></a-image> |
137 | 138 | </a-entity> |
138 | 139 |
|
139 | 140 | <a-entity id="rings-group-2" position="0 0 -1" scale="0.5 0.5 0.5"> |
140 | | - <a-image mixin="image toggleAnimation" src="#ring2" scale="1.2 1.2 1.2" position="0 0 .01" animation="delay: 800"></a-image> |
141 | | - <a-image mixin="image toggleAnimation" src="#text1" scale="0.3 0.3 0.3" position="1.4 0 .02" animation="delay: 900"></a-image> |
| 141 | + <a-image mixin="image delayVisible" src="#ring2" scale="1.2 1.2 1.2" position="0 0 .01" event-set__loaded="_delay: 800"></a-image> |
| 142 | + <a-image mixin="image delayVisible" src="#text1" scale="0.3 0.3 0.3" position="1.4 0 .02" event-set__loaded="_delay: 900"></a-image> |
142 | 143 | </a-entity> |
143 | 144 |
|
144 | 145 | <a-entity id="rings-group-1" scale="0.6 0.6 0.6"> |
145 | | - <a-image mixin="toggleAnimation" mixin="image" src="#ring5" scale="1.2 1.2 1.2" position="0 0 0" animation="delay: 600"></a-image> |
146 | | - <a-image mixin="toggleAnimation" mixin="image" src="#ring4" scale="1.2 1.2 1.2" position="0 0 .01" animation="delay: 600"></a-image> |
147 | | - <a-image mixin="toggleAnimation" mixin="image" src="#ring3" position="0 0 .02" animation="delay: 700" |
| 146 | + <a-image mixin="delayVisible" mixin="image" src="#ring5" scale="1.2 1.2 1.2" position="0 0 0" event-set__loaded="_delay: 600"></a-image> |
| 147 | + <a-image mixin="delayVisible" mixin="image" src="#ring4" scale="1.2 1.2 1.2" position="0 0 .01" event-set__loaded="_delay: 600"></a-image> |
| 148 | + <a-image mixin="delayVisible" mixin="image" src="#ring3" position="0 0 .02" event-set__loaded="_delay: 700" |
148 | 149 | animation__scale="property: scale; from: 1 1 1; to: 1.25 1.25 1.25; delay: 700; dur: 250; easing: easeOutCubic"></a-image> |
149 | 150 | </a-entity> |
150 | 151 |
|
|
0 commit comments