mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 12:55:08 +00:00
Start floating on load
This commit is contained in:
@@ -137,6 +137,7 @@ export default {
|
||||
z: 0.06,
|
||||
},
|
||||
});
|
||||
phone.startFloat();
|
||||
scene.add(phone);
|
||||
screenInit();
|
||||
bodyInit();
|
||||
@@ -166,11 +167,11 @@ export default {
|
||||
}
|
||||
|
||||
function handleMouseEnter() {
|
||||
phone.animation = 'lookAt';
|
||||
if (phone) { phone.animation = 'lookAt'; }
|
||||
}
|
||||
|
||||
function handleMouseLeave() {
|
||||
phone.animation = 'home';
|
||||
if (phone) { phone.animation = 'home'; }
|
||||
}
|
||||
|
||||
function handleMouseMove(event) {
|
||||
|
||||
Reference in New Issue
Block a user