Skip to content

Commit

Permalink
example: Start spining after page loaded
Browse files Browse the repository at this point in the history
Example to show to programaticaly control properties

Change-Id: I140ec2892d3b2a4524183630984b6c7ee7fb6eb9
Relate-to: https://github.com/aframevr/aframe/blob/master/docs/introduction/javascript-events-dom-apis.md
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Mar 12, 2019
1 parent 8f3f440 commit cc64f56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
clearInterval(interval);
}
});
setTimeout(function(){
toggleSwitch.emit('change', { value: 1 });
}, 1000);

// changes tubular radius
var rotaryKnob = document.querySelector('#rotaryKnob');
Expand Down

0 comments on commit cc64f56

Please sign in to comment.