In last 5 articles of this web development series, we learned and understood the concept of CSS Grids which helps to create responsive layouts for web pages in very few lines of CSS. Now moving forward, we are going to see about styling various elements using transformations and animations. So let's begin... CSS Transforms CSS translations allow us to translate, rotate, scale and skew elements created in HTML using CSS. These transformations may change shape, position, size, and orientation of element. CSS transforms is mainly divided into 2D and 3D. 3D transforms make changes such that we feel them in 3 dimensions. CSS 2D Transformations Following are some of the commonly used 2D transformations: translate() rotate() scale() skewX() skewY() matrix() The translate() method This method changes the position of the element from its current position. The change in position is according to parameters given to translate() , where the first parameter represents ...
The blog to help programmers to learn, experiment and understand new concepts.