In CSS3, you can use the transform function to achieve the rotation, scaling, tilt, and movement of the text or image four types of deformation processing, this article will be described in detail. I. Rotating rotate
Usage: transform:rotate (45DEG);
ObjectiveThis article is translated from why moving Elements with Translate () is Better Than pos:abs Top/left, this article has been modified to add some author's own understanding, the wrong place also please spectators pointed out. Translation
Translate, rotate, scale, and canvasrotate for Canvas plottingCanvas operations
The canvas drawing environment is changed through translate (), scale (), rotate (), setTransform (), and transform (), which will affect the transformation matrix of
The following steps are used to translate a document with a translation function:
Step one: On the Review tab, language group, click Translate, and in the expanded list, click Choose Convert Language.
Step two: Open the Translation Language
1.translate (x, y): pan, move the coordinate origin of the canvas to the left and right of the X, and move the Y.canvas in the top and bottom direction by the default position (0,0).Example: If the canvas Origin falls on (translate), then the origin
Introduction to Canvas operationsThe canvas drawing environment is changed by translate (), scale (), rotate (), SetTransform (), and transform (), which affect the transformation matrix of the canvas.
Function
Method
Activity switching effect using Android animation effect, Android animation in the official relevant information: http://developer.android.com/guide/topics/graphics/ Animation.html and
Deformation--displacement translate ()The translate () function moves the element in the specified direction, similar to relativein position. Or, in a simple sense, using the translate () function, you can move an element from its original position
The Translate property is a property of the displacement, which we can move from its current position to the specified position by means of the translate () method element, as described in detail below.
With the translate () method, the element
2011.10.28 Note: If you need to stop the widget at the position after the animation, you need to set the android: fillAfter attribute to true on the set node. By default, after the animation ends, the system returns to the position before the
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.