I am trying to make a shrink and grow back to original scale animation of an image
something like the following gif
https://vue-native.io/images/grow-animation.gif
I tried using tweens and scale and…
- I could not figure how to reverse scaling
- I am not sure if using onUpdate - is the right way to center the image
- Should I use ease = Linear for smooth animation?
this.tweens = this.scene.tweens.add({
targets: this.image,
scale: 0.8,
ease: ‘Linear’,
duration: 1000,
repeat: -1,
onUpdate: () => {
this.image.setX(110)
this.image.setY(110)
},
})
Thanks for any tip