Better anims
This commit is contained in:
parent
2c99ab871b
commit
705454de6f
@ -60,8 +60,8 @@ const updatePosition = (x: number, y: number) => {
|
||||
targets: { x: currentX.value, y: currentY.value },
|
||||
x: targetX,
|
||||
y: targetY,
|
||||
duration: 150,
|
||||
ease: 'Linear',
|
||||
duration: 160,
|
||||
ease: 'Power1',
|
||||
onUpdate: (tween) => {
|
||||
currentX.value = tween.targets[0].x ?? 0
|
||||
currentY.value = tween.targets[0].y ?? 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user