JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<header class="topH">
<div class="btn">
<ul class="text">
<li>The weird Buck</li>
</ul>
</div>
<a href="#" id="start"><i class="fa fa-anchor"></i></a>
</header>
CSS
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.topH {
width: 100%;
height: 45px;
position: relative;
top: 0;
left: 0;
background: #0062BD;
}
#mainNav li {
display: inline-block;
width: 32%;
height: 100%;
padding: 0;
margin: 0;
}
.centerIcon {
}
.centerIcon li {
display: inline-block;
}
.btn {
background: rgba(0, 0, 0, 0.4);
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) inset;
width: 80%;
height: 80%;
display: block;
position: relative;
top: 10%;
left: 10%;
overflow: hidden;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
padding-top: 5px;
}
.text {
right: 50%;
text-align: left;
font-size: 1.5em;
font-family: "century gothic";
position: absolute;
color: #f7f7f7;
transition: right 3s ease-in;
-webkit-transition: right 3s ease-in;
-moz-transition: right 3s ease-in;
}
.text.active {
right: 2%;
}
.text > li {
display: inline-block;
margin-right: 1px;
text-align: left;
}
.fa-dashboard, .fa-gamepad, .fa-picture-o, .fa-hdd-o, .fa-pencil-square-o, .fa-envelope-o {
font-size: 1.5em!important;
}
#start {
position: absolute;
display: block;
top: 10%;
left: 2%;
width: 6%;
height: 80%;
background: rgba(255, 255, 255, 0.6);
border-radius: 5px;
text-align: center;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
color: rgba(0, 0, 0, 0.5);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
#start:hover {
color: #0062BD;
}
.fa-anchor {
font-size: 1.5em;
margin-top: 20%;
}
div, span, a, li {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
JavaScript
$('#start').on('click', function() {
$('.text').toggleClass('active');
});