<html>
<head>
<meta charset=utf-8 />
<script src="https://d3js.org/d3.v3.min.js"></script>
<title>JS Bin</title>
</head>
<body>
<section>
<h1>One</h1>
<div class="arrow">
<div class="arrow-status complete">
Complete!
<span class="arrow-pointer"></span>
</div>
</div>
<h1>Two</h1>
<div class="arrow">
<div class="arrow-status pro">
70%<span class="arrow-pointer"></span>
</div>
</div>
<h1>Three</h1>
<div class="arrow">
<div class="arrow-status noob">
20%
</div>
</div>
</section>
</body>
</html>
@import "compass/css3";
body {
font-family: Georgia,"Times New Roman",Times,serif;
color: white;
width: 50%;
margin: 0 auto;
}
section, div {
box-sizing: border-box;
}
section {
width: 100%;
padding: 1em;
background-color: #333333;
box-sizing: border-box;
}
.arrow {
position: relative;
width: 100%;
border: 5px solid #666;
border-radius: 2px;
height: 2em;
}
.arrow-status {
text-align: right;
padding-right: .5em;
background-color: #3aa6d0;
border-color: white;
border-right: .5em solid adjust-lightness(#3aa6d0, 20);
width: 0%;
color: white;
height: 100%;
line-height: 1.2em;
animation: width .5s ease-in;
}
.arrow-pointer2 {
background-color: white;
display: inline-block;
width: 1em;
height: 3em;
position: relative;
left: 100%;
top: -1em;
margin-left: -2em;
margin-bottom: -2em;
border-radius: 0 5px 5px 0;
}
.complete {
width: 100%;
border-radius: 0px;
}
.pro {
width: 75%;
}
.noob {
width: 25%;
}
@-webkit-keyframes width {
from { width: 0%; }
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.