JSFiddle - React, Tailwind, and code Playground

by luka kupunia

HTML

<div id="box">
  <div class="left">
    <h1>constuction process</h1>
    <div class="home">home ; </div>
  </div>
  <div class="right">
    <div class="option"></div>
    <div class="option"></div>
  </div>
</div>

<div class="frag"></div>

CSS

body {
  margin: 0;
}
* {
  box-sizing: border-box;
  color: white;
}
div#box {
  padding: 65px 0;
  font-size: 0px;
  background: darkblue;
}
div.left , div.right {
  display: inline-block;
  font-size: 16px;
  vertical-align: middle;
}
div.left {
  width: 40%;
  font-size: 30px;
  padding-left: 90px;
}
div.right {
  width: 60%;
  text-align: right;
  padding-right: 300px;
}
div.left h1 {
  display: inline-block;
  vertical-align: middle;
  text-transform: uppercase;
  font-size: 22px;
  margin-right: 15px;
}
div.left .home {
  display: inline-block;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 5px 0;
  padding-left: 10px;
  border-left: 5px solid white;
  font-size: 14px;
}
div.frag {
  width: 240px;
  height: 18px;
  background: purple;
  margin: 20px;
  backface-visibility: hidden;
  transition: 1s;
  -webkit-clip-path: polygon(0 0, 100% 0, 91% 74%, 0 12%);
  clip-path: polygon(0 0, 100% 0, 91% 74%, 0 12%);
}
div.frag:hover {
  width: 400px;
  height: 50px;
}