Better anims

This commit is contained in:
Dennis Postma 2024-08-03 19:13:13 +02:00
parent 2c99ab871b
commit 705454de6f

View File

@ -60,8 +60,8 @@ const updatePosition = (x: number, y: number) => {
targets: { x: currentX.value, y: currentY.value }, targets: { x: currentX.value, y: currentY.value },
x: targetX, x: targetX,
y: targetY, y: targetY,
duration: 150, duration: 160,
ease: 'Linear', ease: 'Power1',
onUpdate: (tween) => { onUpdate: (tween) => {
currentX.value = tween.targets[0].x ?? 0 currentX.value = tween.targets[0].x ?? 0
currentY.value = tween.targets[0].y ?? 0 currentY.value = tween.targets[0].y ?? 0