<div style="text-align:center">
<section>
<div class="button">
<a href="https://twitter.com/fiveranet" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @fiveraNet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="cover">
<div class="innie"></div>
<div class="spine"></div>
<div class="outie"></div>
</div>
<div class="shadow"></div>
</section>
</div>
body {
background: #ccc;
}
section,section div {
-webkit-transition-duration: .9s;
-moz-transition-duration: .9s;
-o-transition-duration: .9s;
-ms-transition-duration: .9s;
transition-duration: .9s;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
section,.button {
-webkit-transition-timing-function: ease;
-moz-transition-timing-function: ease;
-o-transition-timing-function: ease;
-ms-transition-timing-function: ease;
transition-timing-function: ease;
}
section {
display: inline-block;
position: relative;
padding: .375rem .375rem 0;
height: 2.5rem;
background: #3C7C94;
border-radius: .25rem;
perspective: 300;
-webkit-box-shadow: 0 -1px 2px #fff, inset 0 1px 2px rgba(0,0,0,.2), inset 0 .25rem 1rem rgba(0,0,0,.1);
box-shadow: 0 -1px 2px #fff, inset 0 1px 2px rgba(0,0,0,.2), inset 0 .25rem 1rem rgba(0,0,0,.1);
}
.button {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
}
.cover {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
-webkit-transform-origin: center bottom;
-moz-transform-origin: center bottom;
-o-transform-origin: center bottom;
-ms-transform-origin: center bottom;
transform-origin: center bottom;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
font: 1.25em/2 "icon";
color: white;
text-align: center;
pointer-events: none;
z-index: 100;
}
.innie,.outie,.spine,.shadow {
position: absolute;
width: 100%;
}
.innie,.outie {
height: 100%;
background-image: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,.1) 100%);
background-image: -moz-linear-gradient(top, transparent 0%, rgba(0,0,0,.1) 100%);
background-image: -o-linear-gradient(top, transparent 0%, rgba(0,0,0,.1) 100%);
background-image: -ms-linear-gradient(top, transparent 0%, rgba(0,0,0,.1) 100%);
background-image: linear-gradient(top, transparent 0%, rgba(0,0,0,.1) 100%);
border-radius: .25rem;
}
.innie:after,.outie:after {
content: "Twitter";
}
.innie {
background-color: #3C7C94;
text-shadow: 0 -2px 4px rgba(0,0,0,.2);
}
.spine {
top: .25rem;
background: #3C7C94;
height: .25rem;
-webkit-transform: rotateX(90deg);
-moz-transform: rotateX(90deg);
-o-transform: rotateX(90deg);
-ms-transform: rotateX(90deg);
transform: rotateX(90deg);
-webkit-transform-origin: center top;
-moz-transform-origin: center top;
-o-transform-origin: center top;
-ms-transform-origin: center top;
transform-origin: center top;
}
.shadow {
top: 100%;
left: 0;
height: 3.5rem;
-webkit-transform-origin: center top;
-moz-transform-origin: center top;
-o-transform-origin: center top;
-ms-transform-origin: center top;
transform-origin: center top;
-webkit-transform: rotateX(90deg);
-moz-transform: rotateX(90deg);
-o-transform: rotateX(90deg);
-ms-transform: rotateX(90deg);
transform: rotateX(90deg);
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
z-index: 0;
background-image: -webkit-linear-gradient(top, rgba(0,0,0,.6) 0%, transparent 100%);
background-image: -moz-linear-gradient(top, rgba(0,0,0,.6) 0%, transparent 100%);
background-image: -o-linear-gradient(top, rgba(0,0,0,.6) 0%, transparent 100%);
background-image: -ms-linear-gradient(top, rgba(0,0,0,.6) 0%, transparent 100%);
background-image: linear-gradient(top, rgba(0,0,0,.6) 0%, transparent 100%);
border-radius: .4rem;
}
.outie {
background-color: #3C7C94;
-webkit-transform: translateZ(.25rem);
-moz-transform: translateZ(.25rem);
-o-transform: translateZ(.25rem);
-ms-transform: translateZ(.25rem);
transform: translateZ(.25rem);
text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
section:hover {
background: #3C7C94;
}
section:hover .button {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
}
section:hover .cover,section:hover .innie,section:hover .spine,section:hover .outie,section:hover .spine {
-webkit-transition-timing-function: cubic-bezier(.2,.7,.1,1.1);
-moz-transition-timing-function: cubic-bezier(.2,.7,.1,1.1);
-o-transition-timing-function: cubic-bezier(.2,.7,.1,1.1);
-ms-transition-timing-function: cubic-bezier(.2,.7,.1,1.1);
transition-timing-function: cubic-bezier(.2,.7,.1,1.1);
}
section:hover .cover {
-webkit-transform: rotateX(-120deg);
-moz-transform: rotateX(-120deg);
-o-transform: rotateX(-120deg);
-ms-transform: rotateX(-120deg);
transform: rotateX(-120deg);
}
section:hover .innie {
background-color: #3C7C94;
}
section:hover .spine {
background-color: #3C7C94;
}
section:hover .outie {
background-color: #2174A0;
color: rgba(255,255,255,0);
}
section:hover .shadow {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
-webkit-transform: rotateX(45deg) scale(.95);
-moz-transform: rotateX(45deg) scale(.95);
-o-transform: rotateX(45deg) scale(.95);
-ms-transform: rotateX(45deg) scale(.95);
transform: rotateX(45deg) scale(.95);
}
small {
font: .8rem/1 sans-serif;
padding-top: 4rem;
color: #777;
}
small a {
color: #222;
text-decoration: none;
border-bottom: thin solid #ccc;
}
small a:hover {
border-bottom-color: #222;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.