of less than 1.0 indicates a contractionValue greater than 1.0 indicates magnification
Toxscale [float]Toyscale[float]
Stretch dimensions on X, y coordinates at the end of the animation
Pivotx[float]Pivoty[float]
is the starting position of the animation's x and Y coordinates relative to the object
Attribute value Description: value from 0%-100%, 50% is the midpoint position on the x or y direction coordinate of th
animation ends, the scaling dimensions on the X and y coordinates
Pivotx[float]Pivoty[float]
The start position of the x and Y coordinates of the animation relative to the object
Property value Description: From 0%-100%, 50% is the midpoint position on the x or Y coordinate of the object
table four
translate
The Android platform offers two types of animations. One is the tween animation, that is, the objects in the scene constantly changing the image to produce animation effects (rotation, translation, scaling and gradient).
Let's talk about Tweene animations.
Main class:
Animation Animation
Alphaanimation Gradient Transp
Type of animationAndroid animation is made up of four different typesin XML
Alpha
Gradient Transparency Animation effect
Scale
Gradient Dimension Stretch animation effect
Translate
Move animation effect on picture transition position
I believe that the power of faith, as long as every day progress, one day, will be different. Go to Jaca later, found that there are really a lot of knowledge to add, no longer like C + +, as long as in-depth study is good, there is no in-depth, but requires a wide range of knowledge. After the Android knowledge to complete, and then look at Android books, and finally in-depth study of Java, two years should be urgent, efforts.
Do not climb the high mountain, do not know the height of the sky,
Html: Css:. Wrap_ ul li:hover{border-style:dashed;-webkit-animation:spinaround 9s linear infinite;-moz-animation:spinaround 9s linear infinite;Animation:spinaround 9s linear infinite;}. Wrap_ ul li:hover a{-webkit-animation:spinaround1 9s linear infinite;-moz-animation:spinaround1 9s linear infinite;Animation:spinaround1 9s linear infinite;}@-webkit-keyframes Spinaround {From {-webkit-transform:rotate (0deg) }To {-webkit-transform:ro
define 2D transformations, moving elements along the x and Y axes.
TranslateX ( n )
defines the 2D transformation, moving elements along the X-axis.
translatey ( n )
defines the 2D transformation, moving elements along the Y axis.
Scale ( x , y )
defines the 2D scaling transformation, changing the width and height of the element.
ScaleX ( n )
defines the 2D scaling transformation, changing the width
The transform of the css3 animation attribute series describes rotating rotate and css3rotate in detail.
1. Syntax:
Transform: none |
2. values:
None ---- Do not change
SpaceSeparate
It can be used for inline and block-level elements to achieve rotation, scaling, movement, and other effects. The details are as follows:
Rotate ---
Zoom in View-> rotate-> restore animation, view animationTake UIButton as an example to create a class that inherits from UIButton.
/* Create a storyboard for the page */
. H file
@ Interface PTSRecommendButton: UIButton
-(Void) viewTransform;
@ End
. M file
@ Implementation PTSRecommendButton
-(Void) viewTransform {
//
[Self. layer setAnchorPoint: CGPointMake (1, 0.5)];
CGRect btnFrame = self. frame;
// Se
Type of animationAndroid animation is made up of four different typesin XML
Alpha
Gradient Transparency Animation effect
Scale
Gradient Dimension Stretch animation effect
Translate
Move animation effect on picture transition position
This article mainly introduces how to use rotate to achieve the effect of continuous rotation of images in Android . Android platform provides two kinds of animation, one is Tween animation, that is, through the scene of the object constantly do image transformation (translation, scaling, rotation) to produce animation
Type of animation Android animation is made up of four different types in XML Alpha gradient Transparency animation effect Scale gradient dimension stretch animation effect Translate picture conversion position Move animation effect
Type of animationAndroid animation is made up of four different typesin XML
Alpha
Gradient Transparency Animation effect
Scale
Gradient Dimension Stretch animation effect
Translate
Move animation effect on picture transition position
Type of animationAndroid animation is made up of four different typesin XML
Alpha
Gradient Transparency Animation effect
Scale
Gradient Dimension Stretch animation effect
Translate
Move animation effect on picture transition position
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.