freeCodeCamp/curriculum/challenges/russian/01-responsive-web-design/applied-visual-design/use-the-css-transform-prope...

1.6 KiB
Raw Blame History

id title challengeType videoUrl localeTitle
587d78a6367417b2b2512adc Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis 0 Используйте свойство CSS Transform Property skewY для искажения элемента по оси Y

Description

Учитывая, что skewX() выделенный элемент вдоль оси X на заданную степень, неудивительно, что skewY() элемент вдоль оси Y (по вертикали).

Instructions

Перекосите элемент с идентификатором top -10 градусов по оси Y, используя свойство transform .

Tests

tests:
  - text: Элемент с <code>top</code> id должен быть перекошен на -10 градусов по оси Y.
    testString: 'assert(code.match(/#top\s*?{\s*?.*?\s*?transform:\s*?skewY\(-10deg\);/g), "The element with id <code>top</code> should be skewed by -10 degrees along its Y-axis.");'

Challenge Seed

<style>
  div {
    width: 70%;
    height: 100px;
    margin: 50px auto;
  }
  #top {
    background-color: red;

  }
  #bottom {
    background-color: blue;
    transform: skewX(24deg);
  }
</style>

<div id="top"></div>
<div id="bottom"></div>

Solution

// solution required