-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcameramovement.js
29 lines (21 loc) · 1.11 KB
/
cameramovement.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"use strict"
//document.getElementById('cam').setAttribute('position', {x: 7, y: 1.6, z: 1.8});
window.onload = function() {
setTimeout(function(){
//do what you need here
document.getElementById('cam').setAttribute('animation', 'property: position; to: 0 1 3');
}, 3000);
setTimeout(function(){
//do what you need here
//document.getElementById('cam').setAttribute('animation', 'property: position; to: 1.291 1 3.099');
//document.getElementById('cam').setAttribute('animation', 'property: rotation; to: -15.699 26.929 0');
document.getElementById('fejtarto').setAttribute('animation', 'property: rotation; to: 0 105 0');
}, 9000);
setTimeout(function(){
//do what you need here
//document.getElementById('cam').setAttribute('animation', 'property: position; to: 1.291 1 3.099');
//document.getElementById('cam').setAttribute('animation', 'property: rotation; to: -15.699 26.929 0');
document.getElementById('maincow').setAttribute('animation', 'property: position; to: -1.150 -0.086 2.980');
document.getElementById('cam').setAttribute('animation', 'property: position; to: 3.5 1 7');
}, 12000);
};