A-Frame – a-cursor without click

The below example shows using a-cursor with no click event, but with  mouseenter & moveleave events, which will show/hide a text (“HELLO WORLD!”) hovering over a box.

Please notice, that it is necessary to add a link to a JavaScript library containing the text component, and that the component only works with A-Frame releases from 0.4.0 and below!

 

A-Frame – a-cursor with click

The below example shows using a-cursor, where a click event will rotate a box. Mouseenter & moveleave events will scale the box up and down.