Tag:
location. If you want an object to move on the screen, you just need to manipulate its position. Moving one to the bottom of the screen means that you are increasing its Y-coordinate, because (x:0, y:0) represents the upper-left corner of the screen in the iOS app. If you want to move an object from the bottom of the screen to the center, you first need to set the Y coordinate to be larger than the vertical resolution of the screen (bottom of the road screen), and then move the y-coordinate animation to a smaller value to place in the center of the screen. The
320*568 is one-times the resolution of the iphone 5 screen. The IPhone 6 screen is 375*667. However, the total number of true pixels is twice times that, but you do not need to consider this when you place the UI object on the screen.
transparency. changing an interface element from 100% opaque to transparent means that you are adjusting its transparency, or the alpha value. Animation adaptation An object's transparency may be the most common attribute, which can be a good transition between the front end and the background that is mixed into the 100% opaque to reveal. And if you're slowly removing something from the screen, it's usually not a mistake to have the animation fade to set its alpha to 0. In general, you'll see the animation of transparency and other properties appearing at the same time, for example, moving something from the bottom of the screen to the screen (position), and turning its transparency from 0.0 (transparent) animation to 1.0 (opaque).
scale. if you want to make an object larger or smaller (changing two directions at a time to maintain its proportions, or only one Direction at a time), there is a simple property that can be adjusted, that is, the proportions of the object. Want to create a modal warning box that looks like an alert box view of iOS 7? It's a very simple animation that relies on the visual effect of changing proportions. Set the scale initially to about 1.3 times times (larger than the original size), then animate it 1 times times (original size), and change the transparency (starting at 0 to 1.0), which is all.
Now that we've described the three properties that are often used in designing animations, let's go back to the animated examples I showed earlier and precisely split them where they used position, transparency, and scale animations to create their visuals.
All rights reserved: Http://blog.csdn.net/cloudox_
Long-term commitment to iOS English data translation
I think it helps to support my little brother.
Motion Design for IOS "(vii)