This is an A-Frame tutorial that describes how to add rotation to a component References: Writing a component: https://aframe.io/docs/1.0.0/introduction/writing-a-component.html A-Frame component lifecycle: https://aframe.io/docs/1.0.0/core/component.html#definition-lifecycle-handler-methods