Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a-entity id="#whale" gltf-model="#whale" position="0 1.5 -10" rotation="5 -50 0" scale="5 5 5"
- animation="property: position; from: 0 1.5 -10; to: 0 0 0; startEvents: position; dur: 2000; delay: 2000;">
- </a-entity>
- document.querySelector(".enter").addEventListener('click',function () {
- document.querySelector("#whale").emit("position");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement