You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/animation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ Accessed as `el.components.animation.<MEMBER>`.
114
114
115
115
### Controlling Animations using setAttribute
116
116
117
-
Like any A-Frame component, the animation component can be configured from JavaScript by calling [setAttribute()](https://aframe.io/docs/1.2.0/introduction/javascript-events-dom-apis.html#updating-a-component-with-setattribute) on an element.
117
+
Like any A-Frame component, the animation component can be configured from JavaScript by calling [setAttribute()](https://aframe.io/docs/1.3.0/introduction/javascript-events-dom-apis.html#updating-a-component-with-setattribute) on an element.
118
118
119
119
By default, the animation will begin playing immediately (autoplay is true by default).
120
120
@@ -154,7 +154,7 @@ To start an animation by explicitly emitting an event, you can do the following:
154
154
el.emit(`startanim001`, null, false);
155
155
```
156
156
157
-
The [third parameter of emit](https://aframe.io/docs/1.2.0/core/entity.html#emit-name-detail-bubbles) set to "false" parameter ensures the event won't bubble up to parents, so that you can target the animation at just one particular element.
157
+
The [third parameter of emit](https://aframe.io/docs/1.3.0/core/entity.html#emit-name-detail-bubbles) set to "false" parameter ensures the event won't bubble up to parents, so that you can target the animation at just one particular element.
158
158
159
159
This assumes that an animation has already been configured to respond to that custom start event, for example like this:
<pdata-height="265"data-theme-id="dark"data-slug-hash="PpbaBL"data-default-tab="html,result"data-user="mozvr"data-embed-version="2"data-pen-title="Minecraft VR Demo (Part 3: Adding a Background)"data-preview="true"data-editable="true"class="codepen">See the Pen <ahref="http://codepen.io/mozvr/pen/PpbaBL/">Minecraft VR Demo (Part 3: Adding a Background)</a> by mozvr (<ahref="http://codepen.io/mozvr">@mozvr</a>) on <ahref="http://codepen.io">CodePen</a>.</p>
For the random color component, we want to set a random color on the entity
196
196
that this component is attached to. Components have a reference to the entity
@@ -237,7 +237,7 @@ and include it before the scene:
237
237
<pdata-height="265"data-theme-id="dark"data-slug-hash="ryWKqy"data-default-tab="html,result"data-user="mozvr"data-embed-version="2"data-pen-title="Minecraft VR Demo (Part 4: Random Color Component)"data-preview="true"data-editable="true"class="codepen">See the Pen <ahref="http://codepen.io/mozvr/pen/ryWKqy/">Minecraft VR Demo (Part 4: Random Color Component)</a> by mozvr (<ahref="http://codepen.io/mozvr">@mozvr</a>) on <ahref="http://codepen.io">CodePen</a>.</p>
If you are using A-Frame 1.2.0 or older you probably need to update to the [latest release][release]. Browsers are migrating to the [WebXR standard][webxr] and old versions might no longer work.
65
+
If you are using A-Frame 1.3.0 or older you probably need to update to the [latest release][release]. Browsers are migrating to the [WebXR standard][webxr] and old versions might no longer work.
66
66
67
67
You also have to serve your content over HTTPS. The WebXR API won't be available over HTTP.
0 commit comments