I have a set of animations, I noticed that when each piece starts the speed is very fast, how can I adjust the execution speed?
I try this but the animation is too fast
val animator1 = ObjectAnimator
.ofFloat(binding.logoAnimated,
"translationX", 0f, -(width - point.x)).apply {
repeatCount = 1
repeatMode = ValueAnimator.REVERSE
}
val animator2 = ObjectAnimator
.ofFloat(binding.logoAnimated,"translationX",
0f, +(width - point.x)).apply {
repeatCount = 1
repeatMode = ValueAnimator.REVERSE
}
val animatorSet = AnimatorSet()
animatorSet.playSequentially(animator1, animator2)
animatorSet.start()