Teachnique
      CourseRoadmaps
      Login

      IntroductionSyntaxSelectorsInclusionMeasurement UnitsColorsBackgroundsFontsTextImagesLinksTablesBordersBorder BlockBorder InlineMarginsListsPaddingCursorOutlinesDimensionScrollbarsInline BlockDropdownsVisibilityOverflowClearfixFloatArrowsResizeQuotesOrderPositionHyphensHoverDisplayFocusZoomTranslateHeightHyphenate CharacterWidthOpacityZ-IndexBottomNavbarOverlayFormsAlignIconsImage GalleryCommentsLoadersAttr SelectorsCombinatorsRootBox ModelCountersClipWriting ModeUnicode-bidimin-contentAllInsetIsolationOverscrollJustify ItemsJustify SelfTab SizePointer EventsPlace ContentPlace ItemsPlace SelfMax Block SizeMin Block SizeMix Blend ModeMax Inline SizeMin Inline SizeOffsetAccent ColorUser Select

      GridGrid LayoutFlexboxVisibilityPositioningLayersPseudo ClassesPseudo Elements@ RulesText EffectsPaged MediaPrintingLayoutsValidationsImage SpritesImportantData Types

      TutorialRounded CornerBorder ImagesMulti BackgroundColorGradientsBox ShadowBox Decoration BreakCaret ColorText ShadowText2d transform3d transformTransitionAnimationMulti columnsBox SizingTooltipsButtonsPaginationVariablesMedia QueriesFunctionsMath FunctionsMaskingShapesStyle ImagesSpecificityCustom Properties

      IntroductionViewportGrid ViewMedia QueriesImagesVideosFrameworks

      Questions and AnswersQuick GuideReferencesColor ReferencesWeb browser ReferencesWeb safe fontsUnitsAnimation

      PX to EM converterColor Chooser & Animation

      Useful ResourcesDiscussion

      Feedback

      Submit request if you have any questions.

      Course
      2d transform

      CSS Tutorial

      This CSS tutorial is designed for beginners to navigate through the essentials and intricate aspects of CSS styling. Upon finishing this tutorial, participants will possess a comprehensive understanding of CSS, setting a solid foundation for further exploration and mastery. This guide aims to equip you with the skills necessary to transform your visions into visually appealing web designs, laying the groundwork for your journey towards becoming an accomplished web designer.

      2D Transforms

      CSS provides a set of properties that allow you to transform and adjust the elements in the two-dimensional space. The properties that let you transform the elements include translations, rotations, scaling, skewing, etc.
      The following table lists all the various properties that are used transform the elements in the two-dimensional space:
      Property
      Description
      rotate
      Rotates an element by a specified angle.
      scale
      Scales by an element by a specified factor.
      transform
      Transforms an element, such as rotates, scales, skews or translates.
      transform-box
      Defines the layout box for transformation.
      transform-origin
      Sets the origin for the transformation of an element.
      translate
      Moves an element from its current position.
      matrix()
      Defines the transformation of an element based on six matrix values.
      rotate()
      Rotates an element around a fixed point in two-dimensional space.
      rotateX()
      Rotates an element around the horizontal axis in two-dimensional space.
      rotateY()
      Rotates an element around the vertical axis in two-dimensional space.
      scale()
      Scales an element up or down in two-dimensional space.
      scaleX()
      Scales an element up or down horizontally.
      scaleY()
      Scales an element up or down vertically.
      skew()
      Skews an element in two-dimensional space.
      skewX()
      Skews an element in the horizontal direction.
      skewY()
      Skews an element in the vertical direction.
      translate()
      Translates an element in two-dimensional space.
      translateX()
      Translates an element horizontally.
      translateY()
      Translates an element vertically.