forked from noxious/client
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 },
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user