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

1.6 KiB

id title challengeType videoUrl localeTitle
587d78a6367417b2b2512adc Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis 0 استخدم خاصية تحويل CSS skewY إلى Skew an Element على طول المحور ص

Description

وبالنظر إلى أن وظيفة skewX() العنصر المحدد على طول المحور X بواسطة درجة معينة ، فلا غرابة في أن الخاصية skewY() عنصرًا على المحور Y (الرأسي).

Instructions

إمزج العنصر بمعرف top -10 درجات على طول المحور ص باستخدام خاصية transform .

Tests

tests:
  - text: يجب أن يتم تحريف العنصر ذو <code>top</code> الهوية بمقدار -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