Skip to content

Instantly share code, notes, and snippets.

@navkelley
Created March 20, 2017 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navkelley/f464c6fd096c336fac1fc4cafa4d80fc to your computer and use it in GitHub Desktop.
Save navkelley/f464c6fd096c336fac1fc4cafa4d80fc to your computer and use it in GitHub Desktop.
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body {
margin-top: 40px;
font-family: 'Open Sans', sans-serif;
color: #282828;
}
.skills {
width: 80%;
max-width: 960px;
height: 45em;
margin: auto;
position: relative;
}
.lines {
height: 100%;
position: relative;
}
.lines .line {
height: inherit;
width: 2px;
position: absolute;
background: rgba(238, 238, 238, 0.6);
}
.lines .line.l--0 {
left: 0;
}
.lines .line.l--25 {
left: 25%;
}
.lines .line.l--50 {
left: 50%;
}
.lines .line.l--75 {
left: 75%;
}
.lines .line.l--100 {
left: calc(100% - 1px);
}
.lines .line .line__label {
display: block;
width: 100px;
text-align: center;
position: absolute;
bottom: -20px;
right: -50px;
}
.lines .line .line__label.title {
text-transform: uppercase;
font-weight: bold;
}
.charts {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
.chart {
margin: 30px 0 0;
}
.chart:first-child {
margin: 0;
}
.chart__title {
display: block;
margin: 0 0 10px;
font-weight: bold;
opacity: 0;
animation: 1s anim-lightspeed-in ease forwards;
}
.chart--prod .chart__title {
animation-delay: 3s;
}
.chart--design .chart__title {
animation-delay: 4.2s;
}
.chart--horiz {
overflow: hidden;
}
.chart__bar {
height: 30px;
margin-bottom: 10px;
background: linear-gradient(to left, #4CB8C4, #3CD3AD);
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
opacity: 0;
animation: 1s anim-lightspeed-in ease forwards;
}
.chart--dev .chart__bar:nth-of-type(9) {
animation-delay: 2.3s;
}
.chart--dev .chart__bar:nth-of-type(8) {
animation-delay: 2.1s;
}
.chart--dev .chart__bar:nth-of-type(7) {
animation-delay: 1.9s;
}
.chart--dev .chart__bar:nth-of-type(6) {
animation-delay: 1.7s;
}
.chart--dev .chart__bar:nth-of-type(5) {
animation-delay: 1.5s;
}
.chart--dev .chart__bar:nth-of-type(4) {
animation-delay: 1.3s;
}
.chart--dev .chart__bar:nth-of-type(3) {
animation-delay: 1.1s;
}
.chart--dev .chart__bar:nth-of-type(2) {
animation-delay: 0.9s;
}
.chart--dev .chart__bar:nth-of-type(1) {
animation-delay: 0.7s;
}
.chart--prod .chart__bar:nth-of-type(2) {
animation-delay: 3.9s;
}
.chart--prod .chart__bar:nth-of-type(1) {
animation-delay: 3.7s;
}
.chart--design .chart__bar:nth-of-type(3) {
animation-delay: 5.3s;
}
.chart--design .chart__bar:nth-of-type(2) {
animation-delay: 5.1s;
}
.chart--design .chart__bar:nth-of-type(1) {
animation-delay: 4.9s;
}
.chart__bar[data-skill='35'] {
width: 35%;
}
.chart__bar[data-skill='40'] {
width: 40%;
}
.chart__bar[data-skill='45'] {
width: 45%;
}
.chart__bar[data-skill='50'] {
width: 50%;
}
.chart__bar[data-skill='55'] {
width: 55%;
}
.chart__bar[data-skill='60'] {
width: 60%;
}
.chart__bar[data-skill='65'] {
width: 65%;
}
.chart__bar[data-skill='70'] {
width: 70%;
}
.chart__bar[data-skill='75'] {
width: 75%;
}
.chart__bar[data-skill='80'] {
width: 80%;
}
.chart__bar[data-skill='85'] {
width: 85%;
}
.chart__bar[data-skill='90'] {
width: 90%;
}
.chart__bar[data-skill='95'] {
width: 95%;
}
.chart__label {
padding-left: 10px;
line-height: 30px;
color: white;
}
@keyframes anim-lightspeed-in {
0% {
transform: translateX(-200%);
opacity: 1;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment