Let's look at things like spring action. The red circle seems to be moving with a very elastic spring. A green circle with a slightly smoother elastic movement. The blue is not elastic, but the animation becomes very slow at the point-of-magnitude decay rate when approaching the end value.
The third ball is actually not elastic, but its animation is still managed by the physical laws of spring physics in the real world, what is going on? Isn't spring supposed to be elastic? As I said before, the action of a spring-loaded object is actually determined by the characteristics of the spring. Imagine a spring, the lines that make up the spring are very thin. The tension of this spring is very loose, and if you put a small object on its bottom and loosen it, you will see the elastic action as shown in the red ball. Compare a more intense type of spring with more coils and greater pull. The motion of objects hanging on this type of spring is very inelastic because the properties of the springs are very different.
Animation curves like spring action and simple type actions may look similar (at least they are curves!). ), but the mathematical operations behind them are very different. As previously mentioned, the simple curve defines the position of the draw curve control point through a three-dimensional Bezier function. Unfortunately, many advanced types of curves cannot be described with Bessa curves. One of the curves is the damping spring system.
Using a good spring-feeling animation of the type of action generally imitate damping resonance, which can adjust the spring end block mass, spring stiffness, damping strength and other different values.
质量Refers to the mass of the object hanging at the end of the spring. 刚度refers to the difficulty of stretching the spring, generally determined by the thickness of the spring and the density of the coil. Resistance 阻尼强度 or friction, as you try to drag your hand quickly in water. These are the key attributes that define a spring action.
If you want to build your animation library of Web, iOS, or other platforms from scratch, and want to support animations like springs, you need to understand the vast amount of mathematical knowledge behind the spring system to implement it correctly. Fortunately for iOS, there are many excellent animated frameworks already in existence (created by Apple or someone else) that can be used to create natural, spring-like animations.
Before we get into animation coding, let's start with the basic principles of developing iOS apps from scratch, then go to interface development and iOS animations.
Finished viewing the integration set: Https://github.com/Cloudox/Motion-Design-for-iOS
All rights reserved: Http://blog.csdn.net/cloudox_
Long-term commitment to iOS English data translation
I find it helpful to support my brother.
Motion Design for IOS (13)