Part-20 Transform in CSS
Part-20 Transform in CSS
Part-20
This is the Part-20 from our 'CSS Master'
Series. And in this part we will learn about:
visit geekshelp.in if
you want free PDF
and more stuff...
Geeks Help
@raju_webdev www.geekshelp.in
What is transform?
This property is used to apply 2D or 3D
transformation to an element.
Now let's se
e some
transform
property
values...
@raju_webdev www.geekshelp.in
CSS Transform Values
none
This valued defines that there is no
transformation.
translate(x,y)
Defines a 2D translation.
translateX(x)
Defines a translation, using only the value for
the X-axis.
translateY(y)
Defines a translation, using only the value
for the Y-axis
scale(x,y)
Defines a 2D scale transformation.
scaleX(x)
Defines a scale transformation by giving a
value for the X-axis.
@raju_webdev www.geekshelp.in
scaleY(y)
Defines a scale transformation by giving a
value for the Y-axis.
skew(x-angle,y-angle)
Defines a 2D skew transformation along the
X- and the Y-axis.
skewX(angle)
Defines a 2D skew transformation along the
X-axis.
skewY(angle)
Defines a 2D skew transformation along the
Y-axis.
rotate(angle)
Defines a 2D rotation, the angle is specified
in the parameter.
rotateX(angle)
Defines a 3D rotation along the X-axis.
rotateY(angle)
Defines a 3D rotation along the Y-axis.
@raju_webdev www.geekshelp.in
Transform Example
Example: Output:
Output: Example:
Example: Output:
@raju_webdev www.geekshelp.in
Transform Example
Example:
Output:
@raju_webdev www.geekshelp.in
DO YOU FIND IT
HELPFUL
@raju_webdev
I'm Raju, I will help you to provide
amazing content related to web
development and coding.
Geeks Help
www.geekshelp.in