JSFiddle - React, Tailwind, and code Playground
by kenyboy9
HTML
<div class="home-vide-place">
</div>
<div class="slanted-green">
<p>
this is the test example
</p>
</div>
CSS
.home-video-place {
height:500px;
width:100%;
background-color:#000;
background:#000;
}
.slanted-green {
background: #00a279;
box-sizing: border-box;
height: 200px;
width: 1928px%;
position: relative;
padding: 20px;
}
.slanted-green:before {
content: "";
background: #00a279;
height: 200px;
transform: skewY(1deg);
position: absolute;
left: 0;
right: 0;
z-index: -1;
}
.slanted-green:after {
content: "";
background: #00a279;
height: 40px;
transform: skewY(-1deg);
position: absolute;
left: 0;
right: 0;
z-index: -1;
}
.slanted-green:before{
top: -20px;
}
.slanted-green:after {
bottom: -20px;
}