slow down cube animation a little bit
This commit is contained in:
parent
0301744fde
commit
13d0e65c54
1 changed files with 2 additions and 2 deletions
|
@ -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(); } }
|
||||
|
|
Loading…
Add table
Reference in a new issue