JSFiddle - React, Tailwind, and code Playground
Progress - Aggressive
by Hugo Carneiro
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="aggressive-bar">
<div class="bar-content">
<div class="content-left">Aggressive</div>
<div class="content-right">Non-Aggressive</div>
</div>
</div>
CSS
body {
background-color: #e8eae9;
}
.aggressive-bar {
width: 100%;
position: relative;
}
.aggressive-bar:after {
position: absolute;
top: 0;
right: 0;
content: '';
width: 0;
height: 0;
border-style: solid;
border-width: 22px 0 22px 26px;
border-color: transparent transparent transparent #00a4e0;
}
.bar-content {
width: calc(100% - 26px);
height: 44px;
line-height: 44px;
padding: 0 15px;
position: relative;
color: #FFFFFF;
background: rgba(0, 85, 135, 1);
background: -moz-linear-gradient(left, rgba(0, 85, 135, 1) 0%, rgba(0, 163, 224, 1) 100%);
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0, 85, 135, 1)), color-stop(100%, rgba(0, 163, 224, 1)));
background: -webkit-linear-gradient(left, rgba(0, 85, 135, 1) 0%, rgba(0, 163, 224, 1) 100%);
background: -o-linear-gradient(left, rgba(0, 85, 135, 1) 0%, rgba(0, 163, 224, 1) 100%);
background: -ms-linear-gradient(left, rgba(0, 85, 135, 1) 0%, rgba(0, 163, 224, 1) 100%);
background: linear-gradient(to right, rgba(0, 85, 135, 1) 0%, rgba(0, 163, 224, 1) 100%);
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#005587', endColorstr='#00a3e0', GradientType=1);
}
.content-left {
float: left;
}
.content-right {
float: right;
}
/* DO NOT COPY THIS */
</style> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <style>