scrimba
Applied Visual Design
Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
AboutCommentsNotes
Use the CSS Transform Property skewY to Skew an Element Along the Y-Axis
Expand for more info
index.html
run
preview
console
<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>
Console
index.html
-0:36