conversion is an effect of changing the shape, size, and position of an element, CSS3 includes 2D conversions and 3D conversions, where we only accept 2D conversions!
1.Translate () method
By the translate () method, the element is moved from its current position and converted according to the given positional parameters
Code implementation:
Actual effect:
2.Rotate () method
The element rotates the given angle clockwise by the rotate () method.
Code implementation:
Actual effect:
3.scale () method
The size of the element is increased or decreased by the scale () method
Code implementation:
Actual effect:
4.skew () method
By the skew () method, the element flips the given angle
Code implementation:
Actual effect:
This article explains how to do 2D conversion through CSS3, more relevant content please focus on PHP Chinese web.
Related recommendations:
Detailed JavaScript variables and scopes
About $.ajax () method parameters
Explaining math object Math related content