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.7.1/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()](../introduction/javascript-events-dom-apis.md#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.7.1/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](../introduction/javascript-events-dom-apis.md#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.7.1/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](../core/entity.md#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:
| child-attached | A child entity was attached to the entity. |
454
-
| child-detached | A child entity was detached from the entity. |
455
-
| componentchanged | One of the entity's components was modified. This event is throttled. Do not use this for reading position and rotation changes, rather [use a tick handler](../camera.md#reading-position-or-rotation-of-the-camera). |
456
-
| componentinitialized | One of the entity's components was initialized. |
457
-
| componentremoved | One of the entity's components was removed. |
458
-
| loaded | The entity has attached and initialized its components. |
459
-
| object3dset |`THREE.Object3D` was set on entity using `setObject3D(name)`. Event detail will contain `name` used to set on the `object3DMap`. |
460
-
| pause | The entity is now inactive and paused in terms of dynamic behavior. |
461
-
| play | The entity is now active and playing in terms of dynamic behavior. |
462
-
| stateadded | The entity received a new state. |
463
-
| stateremoved | The entity no longer has a certain state. |
464
-
| schemachanged | The schema of a component was changed. |
| child-attached | A child entity was attached to the entity. |
454
+
| child-detached | A child entity was detached from the entity. |
455
+
| componentchanged | One of the entity's components was modified. This event is throttled. Do not use this for reading position and rotation changes, rather [use a tick handler](../components/camera.md#reading-position-or-rotation-of-the-camera). |
456
+
| componentinitialized | One of the entity's components was initialized. |
457
+
| componentremoved | One of the entity's components was removed. |
458
+
| loaded | The entity has attached and initialized its components. |
459
+
| object3dset |`THREE.Object3D` was set on entity using `setObject3D(name)`. Event detail will contain `name` used to set on the `object3DMap`. |
460
+
| pause | The entity is now inactive and paused in terms of dynamic behavior. |
461
+
| play | The entity is now active and playing in terms of dynamic behavior. |
462
+
| stateadded | The entity received a new state. |
463
+
| stateremoved | The entity no longer has a certain state. |
464
+
| schemachanged | The schema of a component was changed. |
Copy file name to clipboardExpand all lines: docs/guides/building-a-basic-scene.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -243,7 +243,7 @@ We can specify a preset (e.g., `forest`) with along many other parameters
243
243
244
244
## Applying an Image Texture
245
245
246
-
> Make sure you're [serving your HTML using a local server](../introduction/getting-started.md#using-a-local-server)
246
+
> Make sure you're [serving your HTML using a local server](../introduction/installation.md#use-a-local-server)
247
247
> for textures to load properly.
248
248
> Due to an [issue with imgur.com](https://stackoverflow.com/questions/43895390/imgur-images-returning-403), view the page using http://localhost, rather than http://127.0.0.1
0 commit comments