Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Scaling | Transformations
Advanced CSS Techniques
course content

Зміст курсу

Advanced CSS Techniques

Advanced CSS Techniques

1. Introduction
2. Item Positioning
3. Transitions
4. Animations
5. Transformations
6. Adaptive/responsive websites and apps
7. Preprocessors

bookScaling

scale() allows us to increase or decrease the element size. Also, we can resize an element only vertically using the scaleY() property or only horizontally using the scaleX() property.

The values for the scale functions must be unitless. By default, the value is 1, which means make no changes.

  • scale() function can get two values. The first (X-value) is the number representing the horizontal resize. The second (Y-value) is the number representing the vertical resize. If we set one value, the browser applies the same for horizontal and vertical scales;
  • scaleX and scaleY functions get one value and change an element horizontally and vertically, respectively.

Let's have some practice and add scaling for the following elements:

html

index

css

index

js

index

copy
Which of the following options can be used to scale an element only in the horizontal direction?

Which of the following options can be used to scale an element only in the horizontal direction?

Виберіть кілька правильних відповідей

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 5. Розділ 2
We're sorry to hear that something went wrong. What happened?
some-alt