CSS - 3D Transform

3D Transform

3D transform in CSS is used to perform simple transformation manipulations (such as move, scale, rotate, etc) in a 3-dimensional area. The transform property is used to define this effect.

3D Transform Methods

translate3d() - moves the element from its position to the x, y and z axis values specified.

rotate3d() - rotates the element in x,y,z direction vector by a specified angle.

scale3d() - increases or decreases the size of the element along the x, y and z-axis.

matrix3d() - uses all the 3d transform methods.

Perspective

The perspective property is used to specify how the 3D element is seen or viewed.

Perspective Origin

The perspective-origin property is used to set the position for which the user is looking at the 3D object.

Backface Visibility

The backface-visibility property is used specify whether or not the 3D element should be visible when its not facing the screen. It takes any of these two values: hidden or visible

Other Related 3D Transfrom Methods

  • translateX()
  • translateY()
  • translateZ()
  • rotateX()
  • rotateY()
  • rotateZ()
  • scaleX()
  • scaleY()
  • scaleZ()
ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT