NeatNait css growing arrow
just a little experiment
<h1>The road so far</h1>
<h1>The road so far</h1>
<br>
<h1 class="year">2010</h1>
<div class="arrow">
<div class="head"></div>
</div>
<h1 class="year right">2014</h1>
<h3 class="neatnait-love">
made with love at
@<a href="http://neatnait.com">neatnait</a>
</h3>
@import url(http://fonts.googleapis.com/css?family=Raleway:200,400);
@import url(http://fonts.googleapis.com/css?family=Raleway:200,400);
@import url(http://fonts.googleapis.com/css?family=Roboto:300);
body{
padding:5%;
background:#323139;
color:white;
}
h1{
font-family: 'Raleway', sans-serif;
font-weight:200;
}
h1.year{
font-weight:400;
}
.right{
float:right;
text-align:right;
margin-right:-8px;
}
.arrow{
margin-top:1em;
border:2px solid #f06;
position:relative;
background:#f06;
width:0%;
animation:grow 3s ease forwards;
}
/*left dot*/
.arrow:before{
content:"";
border:4px solid #f06;
border-radius:50%;
position:absolute;
top:-4px;
left:-4px;
}
.arrow .head, .arrow .head:after{
border:2px solid #f06;
border-radius:2px;
width:8px;
position:absolute;
right:-7px;
top:1px;
transform:rotate(-45deg);
}
.arrow .head:after{
content:"";
border-color:#FFA0C6;
right:-6px;
top:-6px;
transform:rotate(90deg);
}
@keyframes grow{
to{
width:100%;
}
}
.neatnait-love{
box-sizing:border-box;
width:250px;
margin:auto;
margin-top:15em;
font-weight:300;
font-family: 'Roboto', sans-serif;
text-shadow:0 5px 20px #000;
color:white;
background:#111;
padding:2em 6em 2em 4em;
position:relative;
bottom:10%;
left:50%;
margin-left:-125px;
}
a{
text-decoration:none;
color:#f06;
border-bottom:1px solid white;
padding-bottom:5px;
transition:border .5s ease;
}
a:hover{
border-color:#111;
color:#f06;
border-bottom:4px solid white;
}