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
+3-3Lines changed: 3 additions & 3 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.6.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.7.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
@@ -149,13 +149,13 @@ We can use the `startEvents` property to animate upon events:
149
149
150
150
[Remix the Animating on Events Glitch][eventsglitch].
151
151
152
-
To start an animation by explicitly [emitting a custom event](https://aframe.io/docs/1.6.0/introduction/javascript-events-dom-apis.html#emitting-an-event-with-emit), you can do the following:
152
+
To start an animation by explicitly [emitting a custom event](https://aframe.io/docs/1.7.0/introduction/javascript-events-dom-apis.html#emitting-an-event-with-emit), you can do the following:
153
153
154
154
```
155
155
el.emit(`triggeranimation`, null, false);
156
156
```
157
157
158
-
The [third parameter of emit](https://aframe.io/docs/1.6.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
+
The [third parameter of emit](https://aframe.io/docs/1.7.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.
159
159
160
160
This assumes that an animation has already been configured to respond to that custom start event, for example like this:
If you are using A-Frame 1.6.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.7.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.
68
68
@@ -372,7 +372,7 @@ You can load A-Frame as an ES module using a [side effect import](https://develo
0 commit comments