Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

What is 2D Transforms in css


CSS 2D Transforms:-



CSS transforms using for to move, rotate, scale, and skew elements in CSS.

Code


2D Transforms Methods in css:-

CSS transform property you can using this methods in 2D transformation in CSS:-


  • translate()
  • rotate()
  • scaleX()
  • scaleY()
  • scale()
  • skewX()
  • skewY()
  • skew()
  • matrix()

  • translate() Method:-

    The translate() method is moves the element from its current position to another,


    rotate() Method:-

    The rotate() method rotates the elements clockwise or counter-clockwise in css, according to given degree in css.

    scale() Method:-

    The scale() method increases or decreases the sizing of an element according to the parameters given for the width and height in HTML page.

    scaleX() Method:-

    scaleX() method increases or decreases the width of an element according to given value.

    scaleY() Method:-

    scaleY() method increases or decreases the height of an element in CSS

    skewX() Method:-

    skewY() Method:-


    The skewY() method skews an element along the Y-axis by the given angle in CSS.

    skew() Method:-

    skew() method skews an element along the X and Y-axis by the given angles in CSS,

    matrix() Method:-

    matrix() method combines all the 2D transform methods into one in CSS. So This is matrix() Method.


    More Topics