Transformation is an effect that changes the shape, size and position of an element. CSS3 includes 2D transformation and 3D transformation. Here we only accept 2D transformation!
Through the translate() method, the element is moved from its current position Move and convert according to the given position parameters
## Code implementation:
Actual effect:
rotate() method
Through the rotate() method, the element is rotated clockwise by a given angle.
##Actual effect:
##3.scale() method
##Through the scale() method, the size of the element will increase or decrease Code implementation:
actual effect:
##4.skew() methodThrough the skew() method, elements Flip the given angle
Code implementation:
Related recommendations:
Detailed explanation of JavaScript variables and scopeDetailed explanation of $.ajax() method parametersExplanation of mathematical object Math related content
The above is the detailed content of How to do 2D transformation via CSS3. For more information, please follow other related articles on the PHP Chinese website!