Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis

Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
0.0 0

#1

Tell us what’s happening:

Your code so far


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

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-the-css-transform-property-skewy-to-skew-an-element-along-the-y-axis


#2

Check the axis you’re skewing^^


#3

try this ->
transform: skewY(parameter);


#4

Your code would be: @barakutta