HTML CSS Slant / bevel
1 answer
You can get the following result by transforming (rotating) multiple divs
https://jsfiddle.net/6hyrt8ck/
<div class="blue"></div>
<div class="green"></div>
CSS
.blue {
background: blue;
transform: rotate(5deg);
transform-origin: 0 0;
width: 110%;
height: 200px;
}
.green {
background: green;
transform: rotate(-5deg);
transform-origin: 0 100%;
width: 110%;
height: 200px;
}
+4
source to share