JSFiddle - React, Tailwind, and code Playground
by Jacob Stamm
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<div class="static-headliner">
<i class="glyphicon glyphicon-camera"></i>
<div class="headliner-text">Click here to see some stuff!</div>
</div>
CSS
.static-headliner {
position: fixed;
right: .8em;
top: .8em;
background-color: #0f532e;
opacity: .8;
color: white;
cursor: pointer;
padding: 1em 1.3em;
border-radius: 10em;
font-family: 'Segoe UI Light', 'Segoe UI';
-moz-transition: opacity .3s linear;
-o-transition: opacity .3s linear;
-webkit-transition: opacity .3s linear;
transition: opacity .3s linear;
}
.static-headliner .glyphicon {
padding-top: .2em;
padding-bottom: .2em;
display: inline-block;
font-size: 2em;
vertical-align: middle;
}
.static-headliner .headliner-text {
width: 0;
white-space: nowrap;
overflow: hidden;
display: inline-block;
vertical-align: middle;
-moz-transition: all .5s ease;
-o-transition: all .5s ease;
-webkit-transition: all .5s ease;
transition: all .5s ease;
}
.static-headliner:hover {
opacity: 1;
}
.static-headliner:hover .headliner-text {
width: auto;
margin-left: 12px;
}