Files
freeCodeCamp/curriculum/challenges/italian/01-responsive-web-design/applied-visual-design/use-the-css-transform-property-skewy-to-skew-an-element-along-the-y-axis.md
camperbot b3af21d50f chore(i18n,curriculum): update translations (#42487)
* chore(i18n,curriculum): update translations

* chore: Italian to italian

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2021-06-14 11:34:20 -07:00

1.4 KiB

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
587d78a6367417b2b2512adc Usare la proprietà di trasformazione skewY per inclinare un elemento sull'asse Y 0 https://scrimba.com/c/c2MZ2uB 301075 use-the-css-transform-property-skewy-to-skew-an-element-along-the-y-axis

--description--

Dato che la funzione skewX() inclina l'elemento selezionato rispetto all'asse X di un certo grado, non sorprende che la proprietà skewY() inclini un elemento rispetto all'asse Y (verticale).

--instructions--

Inclina l'elemento con l'id di top di -10 gradi rispetto all'asse Y utilizzando la proprietà transform.

--hints--

L'elemento con id top dovrebbe essere inclinato di -10 gradi dal suo asse Y.

assert(code.match(/#top\s*?{\s*?.*?\s*?transform:\s*?skewY\(-10deg\);/g));

--seed--

--seed-contents--

<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>

--solutions--

<style>
  div {
    width: 70%;
    height: 100px;
    margin: 50px auto;
  }
  #top {
    background-color: red;
    transform: skewY(-10deg);
  }
  #bottom {
    background-color: blue;
    transform: skewX(24deg);
  }
</style>
<div id="top"></div>
<div id="bottom"></div>