Introduction to CSS Transformations
We can add movement to our web pages. Transformations modify an element's shape and position while leaving the rest of the page unaffected. As a result, we will be able to create the following effects:
We can add scaling to the elements:
We can add rotation to the elements:
We can add translation to the elements:
We can add skewing to the elements:
Note
We get all these effects with the help of one property -
transformusing different values. Also, it's important to mention thatanimationand@keyframeis added only to show the difference between the initial and result element state. It doesn't mean thattransformis used only with some animations. We will consider all the effects in the further chapters in detail.
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you explain how the `transform` property works in CSS?
What are the different values I can use with the `transform` property?
Can you show examples of how to use each transformation effect in code?
Awesome!
Completion rate improved to 2.04
Introduction to CSS Transformations
Swipe to show menu
We can add movement to our web pages. Transformations modify an element's shape and position while leaving the rest of the page unaffected. As a result, we will be able to create the following effects:
We can add scaling to the elements:
We can add rotation to the elements:
We can add translation to the elements:
We can add skewing to the elements:
Note
We get all these effects with the help of one property -
transformusing different values. Also, it's important to mention thatanimationand@keyframeis added only to show the difference between the initial and result element state. It doesn't mean thattransformis used only with some animations. We will consider all the effects in the further chapters in detail.
Thanks for your feedback!