Home > Mobile >  Android animation after the completion of the recovery is very stiff, direct reduction, also smooth
Android animation after the completion of the recovery is very stiff, direct reduction, also smooth

Time:09-15

And the transition of CSS, is also a smooth transition when how to recover

CodePudding user response:

The use of Interpolator
Interpolator is what?
Easy-to-read, said Interpolator is responsible for the control of animation, the rate of change, make basic animation effects, at a constant speed acceleration, deceleration, parabolic rate and rate
Animation is the beginning and end of a given developers "keys", the change of "intermediate frames" is a system to calculate decision then played out, therefore, each frame of animation will, according to a specific time between the start and end time is converted to the animation time index, each point on the timeline, animation can be converted to a floating point number between 0.0 to 1.0, then the value attributes of the object is used to calculate the transformation, the transformation of the situation, on the y axis, corresponding to the starting position, 0.0 1.0 corresponds to the end position, 0.5 corresponding to the beginning and end of the middle, for some interpolator its value can also is the value of 0 ~ 1,

CodePudding user response:

What is your animation, add a reverse animation
  • Related