slow down cube animation a little bit

This commit is contained in:
Rhiannon Morris 2025-02-16 23:54:15 +01:00
parent 0301744fde
commit 13d0e65c54

View file

@ -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(); } }