h5--Seventh Lesson

Source: Internet
Author: User

07-Transformations

Transform: Transform
Transformation:
Rotate (d) rotation, Angle (Supplement 1: Units of angle), subject to < change datum > influence

Scale (x, y) scaling, numeric, representing scale, default 1, < Transform datum > Impact
X: Horizontal Scaling, y: Vertical scale
Y can default, and the first value will represent X, y
Can be split into ScaleX (x)/ScaleY (y)

Translate (x, y) Displacement, Value/percentage with unit
X: Horizontal direction of displacement, Y: displacement in the vertical direction
Can be split into Translatex (x)/Translatey (y)
Note: When a value is a percentage, the reference object is itself rather than the parent element

Skew (x, y) tilt, angle, subject < Transform datum > Impact
X: Horizontal tilt amount, Y: Tilt in vertical direction
Can be split into SKEWX (x)/Skewy (y)

3D transform: (show 3D effect affected by Transform-style, perspective)
Rotate3d (X,Y,Z,D)
X, Y, z are numeric, D is a degree, and the Fit is written in very few words, you can use the following three split properties instead
Rotatex (x)/Rotatey (y)/Rotatez (z)
Translate3d (x, Y, z)
......
Scale3d (x, Y, z)
......

Transform-origin: Transform Datum
Value: Specific coordinate value/percentage/(Left/right/center/top/bottom)
Default Center Center

Transform-style: Specifies whether the scene of the child element of the specified element is in a 3D scene or a planar (projected) scene
Flat: Default plane (projection)
Preserve-3d:3d scene

Perspective: Specifies the distance between the observer and the z=0 plane so that the elements and child elements appear to have a X-ray position effect
Value: Collective with unit value

Perspective-origin: Perspective Datum
Value: Value similar to transform datum


Supplement 1: Units of the angle
DEG: degrees, a round deg
rad: Radians, a round 2πrad≈6.283 rad
Turn: Circle, a circle 1 turn
Grad: Gradient, a circle of grad

h5--Seventh Lesson

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.