In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use the translate method in Css3". In the daily operation, I believe that many people have doubts about how to use the translate method in Css3. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use the translate method in Css3". Next, please follow the editor to study!
With the translate () method, the element moves from its current position, based on the given left (x coordinate) and top (y coordinate) position parameters:
Rotate () method
With the rotate () method, the element rotates clockwise at a given angle. Negative values are allowed and the element rotates counterclockwise.
The value rotate (30deg) rotates the element 30 degrees clockwise.
Scale () method
With the scale () method, the size of the element increases or decreases, depending on the given width (X axis) and height (Y axis) parameters:
The value scale (2) converts the width to 2 times the original size and the height to 4 times the original height.
Skew () method
With the skew () method, the element flips a given angle, based on the given horizontal (X axis) and vertical (Y axis) parameters:
The value skew (30 deg) flips the element 30 degrees around the X axis and 20 degrees around the Y axis.
Matrix () method
The matrix () method combines all the 2D transformation methods together.
The matrix () method takes six parameters, including mathematical functions that allow you to rotate, scale, move, and tilt elements.
New conversion attribute
The following table lists all the transformation properties:
Transform applies 2D or 3D transformations to elements.
Transform-origin allows you to change the position of the transformed element.
2D Transform method
Matrix defines a 2D transformation, using a matrix of six values.
Translate (XBI y) defines a 2D transformation that moves elements along the X and Y axes.
TranslateX (n) defines a 2D transformation that moves elements along the X axis.
TranslateY (n) defines a 2D transformation that moves elements along the Y axis.
Scale (XBI y) defines a 2D scaling transformation that changes the width and height of the element.
ScaleX (n) defines a 2D scaling transformation that changes the width of the element.
ScaleY (n) defines a 2D scaling transformation that changes the height of the element.
Rotate (angle) defines 2D rotation and specifies the angle in the parameters.
Skew defines a 2D tilt transformation along the X and Y axes.
SkewX (angle) defines a 2D skew transformation along the X axis.
SkewY (angle) defines a 2D skew transformation along the Y axis.
At this point, the study on "how to use the translate method in Css3" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.