From 13d0e65c54891cbc4ca89f961220d38ee8f9493d Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sun, 16 Feb 2025 23:54:15 +0100 Subject: [PATCH] slow down cube animation a little bit --- script/cube.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/cube.ts b/script/cube.ts index 07d5627..93a8454 100644 --- a/script/cube.ts +++ b/script/cube.ts @@ -218,8 +218,8 @@ export function animateMoveWith(ds: RotateXY[], rs: RotateZ[]): void { const cube = document.getElementById('cube')!; cube.dataset.moving = 'true'; - cube.style.transition = '0.4s cubic-bezier(.4, -0.29, .43, 1.26)'; - outer.style.transition = `0.4s 0.25s cubic-bezier(.48, 0, .44, 1.07)`; + cube.style.transition = '0.6s cubic-bezier(.4, -0.29, .43, 1.26)'; + outer.style.transition = `0.4s 0.5s cubic-bezier(.48, 0, .44, 1.07)`; function transitionListener(elem: HTMLElement): () => void { function handler(e: Event) { if (e.target == elem) { finish(); } }