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

1.8 KiB

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

Description

إن الوظيفة التالية لخاصية transform هي skewX() ، التي skewX() العنصر المحدد بمحاذاة X (الأفقي) بدرجة معينة. تحرف التعليمة البرمجية التالية عنصر الفقرة بمقدار -32 درجة على طول المحور X.
ص {
تحويل: skewX (-32deg) ؛
}

Instructions

انحرف العنصر بمعرف bottom بمقدار 24 درجة على طول المحور السيني باستخدام خاصية transform .

Tests

tests:
  - text: يجب تحريف العنصر ذو <code>bottom</code> المعرّف بمقدار 24 درجة على طول المحور السيني.
    testString: 'assert(code.match(/#bottom\s*?{\s*?.*?\s*?transform:\s*?skewX\(24deg\);/g), "The element with id <code>bottom</code> should be skewed by 24 degrees along its X-axis.");'

Challenge Seed

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

  }
</style>

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

Solution

// solution required