Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Transform Functions: Translate, Scale, Rotate, Skew | Mastering Transforms and Animations
CSS Animations and Transitions

bookTransform Functions: Translate, Scale, Rotate, Skew

The transform property in CSS allows you to visually manipulate elements in two-dimensional space. With this property, you can move, resize, rotate, or skew elements directly from your stylesheet, enabling dynamic layouts and engaging user interfaces. The most commonly used transform functions are translate, scale, rotate, and skew. Each function alters the appearance of an element in a unique way:

  • translate moves an element along the X and Y axes;
  • scale resizes it;
  • rotate turns it around a fixed point;
  • skew slants it horizontally or vertically.
index.html

index.html

styles.css

styles.css

copy

When you use more than one transform function together, you can create complex and visually interesting effects. For instance, you might want to move and rotate an element at the same time, or scale and skew it for a dynamic look. In the square div example, you could write transform: translate(40px, 20px) rotate(30deg); to both move and rotate a square. The order of functions matters, as each transformation is applied in sequence, affecting the final appearance.

question mark

Which transform function would you use to slant an element along the X or Y axis?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 1

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

Can you explain how the order of transform functions affects the result?

Can you give more examples of combining transform functions?

What are some practical uses for combining transforms in web design?

Awesome!

Completion rate improved to 8.33

bookTransform Functions: Translate, Scale, Rotate, Skew

Swipe um das Menü anzuzeigen

The transform property in CSS allows you to visually manipulate elements in two-dimensional space. With this property, you can move, resize, rotate, or skew elements directly from your stylesheet, enabling dynamic layouts and engaging user interfaces. The most commonly used transform functions are translate, scale, rotate, and skew. Each function alters the appearance of an element in a unique way:

  • translate moves an element along the X and Y axes;
  • scale resizes it;
  • rotate turns it around a fixed point;
  • skew slants it horizontally or vertically.
index.html

index.html

styles.css

styles.css

copy

When you use more than one transform function together, you can create complex and visually interesting effects. For instance, you might want to move and rotate an element at the same time, or scale and skew it for a dynamic look. In the square div example, you could write transform: translate(40px, 20px) rotate(30deg); to both move and rotate a square. The order of functions matters, as each transformation is applied in sequence, affecting the final appearance.

question mark

Which transform function would you use to slant an element along the X or Y axis?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 1
some-alt