This article is about the transition effect of variable speed, seemingly simple, but really want to make the animation natural smooth, but also need to understand the basic principles of animation. Today we will gradually learn: the basic concepts, explore accelerated deceleration, dismantling the buffer curve, and eventually learn to apply to the interface design.
What do you think these two balls are doing?
Green ball bounce is obvious, but how does the red ball move? Of course, it moves up and down like a green ball, and the time it takes to fall and bounce is the same as the green ball. However, the red ball feels very mechanical, and the green ball makes it feel like it's actually bouncing. Why do we have this difference in feelings?
The answer is a variable speed transition effect (easing).
1, Time and Space displacement (Timing and Spacing)
First of all, we need to understand two important concepts-time and space, which are closely related and inseparable. They are important to make the animation more readable.
Note: "Readability" is about how the animator defines the accuracy of the animation to make it clear and easy to understand what is happening. For example: unreadable = Not clear what happened is easy to read = It is very clear, immediately understand
Time
In the case, two balls fall at the same top, 0.5 seconds to the ground and 1 seconds to return to their original position. This is the time of the ball-time consuming to complete an action. Two balls take the same time, but, and so on ... Two balls are 1 seconds of animation, why does it feel so different?
Space displacement
This is the key difference between making two animations completely different. Let's break the first 0.5-second animation into smaller units of time so that we can see more clearly what's going on. If we mark the position of the ball every 0.1 seconds, we can get this picture:
See the distance between two units of time? This is the space shift. Easy stuff, right? Time is time-consuming, space is displacement!
Let's look at the spacing of the red balls, very evenly. Every 0.1 seconds, it moves exactly the same distance. There is no change in the movement at all. However, green balls have different intervals every 0.1 seconds. In the first 0.1s, it only moves very small spacing, and when it falls, the spacing becomes bigger and larger until it finally hits the ground. In fact, it took 0.4 seconds to complete the first half, only 0.1 seconds to complete the second half of the journey!
So, the question is, why do we have to increase the spacing per second in this way?
Observation shows the world
Watch what happens when you bounce a ball. Try it yourself or watch some videos on YouTube. I found two questions: slow bouncing balls and tennis bouncing balls.
The physical theory behind the bounce:
It has a relatively slow speed when the ball is just beginning to be released. Under the action of gravity, the speed of the ball continues to increase until the moment of contact with the ground reaches the maximum speed. The ground gives the ball a reaction that bounces back at almost the same speed. When the ball moves, the two forces are acting on the ball-the force that bounces, the gravity that wants to pull it down. The strength of the rebound is slowly releasing, which slows the ball down as it rises, until it consumes all the reaction and eventually reaches the highest point of bounce. It stays at the top for a microsecond until gravity pulls it down and makes it drop as fast as before. There is a reason why I use words to describe this sentence. We try to break down a natural behavior into concrete steps so that we can recreate it.
There are some key considerations:
1, when the ball at the top, it is slow. As it declines, its speed increases.
2, when bouncing back, the ball at the beginning of the speed quickly. When we reach the vertex, the speed slows down.
3, at the same time, when the ball speed quickly, the displacement will be very long, when the ball speed slows, the displacement is much less.
The last sentence sounds superfluous, but that's what we're interested in: A fast object moves a long distance in a unit of time, while a slow object covers a shorter distance at the same time.
Applying the conclusions we have observed
Let's apply this concept to animation. Look at the displacement diagram again. The spacing at the top is small, each 0.1s gradually increases the spacing, and finally, the maximum spacing is reached at the bottom. That's what we've seen in previous studies. We simply "copy" the principle to the green ball and return it in reverse, see, it's a bouncing ball!
Note: Don't be shy to "copy" nature. Your audience will be associated with animations more quickly, making it easier to read animations.
Let's take another look at the red ball, why don't you feel the red ball bouncing? The problem became clear after understanding the physical principle of a bouncing ball. The red ball moves the same distance every 0.1 seconds, but from the study we know that a bouncing ball doesn't move like that. Because it doesn't move like a bouncing ball, and it doesn't look like a bouncing ball.
So what would it be like for a red ball to move at precisely the same precise amount of time? Of course, mechanical robot! Red ball in the "copy" robotic robot spacing. In other words, because it moves like a robot, it makes people feel very mechanical. The truth is really simple!
Summary
The audience will unconsciously associate the animation with what they know. If the animation makes people think of the world around them, it will look natural. If it makes people think of robots, it will feel very mechanical. If it's not surprising anything, it means the animation looks "strange".
2, gradually and slowly (ease-in and Ease-out)
Now you know why we set the uneven spacing for the bouncing ball. This technical term for uneven spacing is called variable-speed transition effects. Depending on whether you use it to start or end the animation, it is called gradual or slow.
Gradually
This process is called asymptotic when the ball starts at a slow speed and accumulates speed.
Gradually slow
This process is called gradual when the ball starts quickly and slows down.
To understand the definition of the term buffer, we have looked for a lot of theories!
Note: This term is likely to be confused with other terminology. If you are reading a traditional cartoon book, such as Disney's Phantom of Life or the animator's survival tool, these books tell you that when an object starts to decelerate and then accelerates, the process is called ease-out because its stance is "slowly outputting". However, in the software industry (CSS animation, Adobe edge, etc.), this process is called asymptotic (ease in)! I'm not sure how this difference came about, but unfortunately that's how it was formed. So don't be confused when you're reading an article and this article calls it "progressive" as "slow". Take a look at your site and you will understand: D.
Reading curve of variable speed transition
You'll notice that when you open the package, the incremental feature doesn't show you the linear level as shown above. Instead, you get a curve like this:
So what does this curve have to do with all the things we've been talking about so far? Let's draw the curve on the chart and see what we finally draw. It's just basic math-we [should] have learned it in school.
Here's our chart--we're going to draw the time along the x-axis, the y-axis to draw the ball's position. For convenience, we chose 4 units x axes, 0.1 seconds, and 1 units y axes to represent 10 pixels of the ball in vertical motion. (Figure 6)
I measured the motion of the red ball and recorded the position of y every 0.1 seconds. Here is the value of the record:
Position of time Y-axis (seconds): (pixel) —————-0.0:00.1:34
0.2:68
0.3:102
0.4:136
0.5:170
We noticed that every 0.1 seconds, the red ball just moved 34 pixels. If we draw this process on a chart and connect the dots, we get a straight line. We suddenly find that this is the linear gradient pattern you see in most software.
Now, let's do the same with the green ball.
Position of time Y-axis (seconds): (pixel) —————-0.0:00.1:2
0.2:10
0.3:36
0.4:87
0.5:170
The value I get is: every 0.1 seconds, the amount of change in the vertical position of the ball will vary. At first, it changes very little (only 2 pixels) and then slowly increases. In the last 0.1 seconds, it adds up to 83 pixels. Drawing these points on the chart, we get the curve.
Does this picture look familiar to you now? That's the origin of the icons. They indicate the rate of change, or the interval we have now known.
Note: You will see more options for setting buffers in the software, such as two, three, four, and so on. They are only a more moderate choice, but the concept is the same. Just remember-the higher the degree of détente, the more moderate you will get.
3, variable speed transition effect applied in UI Design in
Finally, let's look at how these are used in the UI design.
It's not a rule, it's just a tool (There are no rules.) Only tools)-Glenn Vilppu
I don't really recommend applying a lot of slow, fast rules to your app design. But I can provide some of the most common examples of how it's being used in today's trendy apps.
The most common use you can see in mobile Apps is menu scrolling. If the app doesn't use these variable transitions, it's going to look like an example:
It's a little boring, isn't it? Let's apply some of the transition effect to see what happens?
Yes, much better! We applied the asymptotic effect when the screen slid outward, and we applied the slow effect when we slid inward.
But why not use the slow effect when the screen slides outward?
Technically you can, but you'll find that when a user clicks a button, the fixed screen moves.
When the picture rolls back, the screen looks like a car that is moving from braking to stopping. It starts very quickly, then slows down to stop--it's a gradual process. So, if you have problems solving a particular element activity, try associating it with physical behavior. In this way, the problem of how to make the user interface element active is solved.
Now that you know why these dynamic effects feel natural, you can achieve the same effect in the app. It's nice to see you apply these ideas to your design.
This article is a bit longer than I originally intended, and hopefully it will help you better understand the speed transition effect.