Set properties in response to events in A-Frame
npm install aframe-event-set-componentAn A-Frame component to register event listeners that set
properties.
The event set component can register multiple event handlers that set multiple
properties. Use double-underscores (__) to namespace individual
instances of the component. Alternatively, pass the event name via _event.
``html`
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| _delay | Delay before setting (ms). | '' |
| _event | Event name. | '' |
| _target | Query selector if setting property on another entity. | '' |
_event and _target are prefixed with underscores to avoid name collisionsevent
if case another component has or target properties. Any key-value_event
property pairs provided beyond and _target will be what is set onceevent-set__
the event is emitted. Remember you can also specify an event name in the HTML
attribute in .
#### Browser Installation
Install and use by directly including the browser files:
`html
#### NPM Installation
Install via NPM:
`bash
npm install aframe-event-set-component
`Then register and use.
`js
require('aframe');
require('aframe-event-set-component');
``