diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-28 20:28:36 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-28 20:28:36 +0100 |
| commit | 121cfd1b48254b54730ba323f0b60872f1c782d9 (patch) | |
| tree | 11508bb76d3fee81afe94ac62e80b13674162540 /client/splash/face/index.js | |
| parent | de877acdb34a5e07ce6b7b9d21b9ca720181594d (diff) | |
more
Diffstat (limited to 'client/splash/face/index.js')
| -rw-r--r-- | client/splash/face/index.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/splash/face/index.js b/client/splash/face/index.js index 5e7792d3..31ce8f3b 100644 --- a/client/splash/face/index.js +++ b/client/splash/face/index.js @@ -17,7 +17,7 @@ export function startAnimation() { const face = faces[name] mesh.remove() mesh.load(name).then(meshes => { - meshes.wireframe.position.z -= 0.01 + meshes.wireframe.position.z -= 0.001 markers.swap(face) .then({ from: { n: 0 }, @@ -31,19 +31,23 @@ export function startAnimation() { .then({ from: { n: 0 }, to: { n: 1 }, + delay: 500, duration: 500, easing: oktween.easing.quad_in, update: (obj) => { meshes.blank.material.opacity = 1 - obj.n meshes.solid.material.opacity = obj.n }, + finished: () => { + mesh.removeMesh('blank') + } }) .then({ from: { n: 0 }, to: { n: 1 }, delay: 500, - duration: 500, - easing: oktween.easing.quad_in_out, + duration: 1000, + easing: oktween.easing.quad_in, update: (obj) => { meshes.solid.material.opacity = 1 - obj.n meshes.wireframe.material.opacity = obj.n |
