<h1>Futuristic U.I. Series</h1>
<div class="futuristic-button">
<div class="top"></div>
<div class="parallelogram-left"></div>
<div class="parallelogram-right"></div>
<div class="bottom"></div>
<p class="button-text">Launch Decoy</p>
</div>
html {
height: 100%;
}
body {
height: 100%;
overflow: hidden;
background: rgba(255,255,255,1);
background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(181,181,181,1) 100%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, , color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(181,181,181,1)));
background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(181,181,181,1) 100%);
background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(181,181,181,1) 100%);
background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(181,181,181,1) 100%);
background: radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(181,181,181,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#b5b5b5', GradientType=1 );
}
/* ====================================
FUTURISTIC U.I. SERIES
==================================== */
h1 {
margin: 50px 0 0 0;
color: rgba(50,50,50,1);
text-align: center;
text-shadow:
1px 0px 0px rgba(35, 231, 214, 1),
-1px 0px 0px rgba(210, 17, 50, 1);
font-family: 'Ubuntu Condensed', sans-serif;
}
/* ====================================
FUTURISTIC BUTTON
==================================== */
.futuristic-button {
height: 60px;
width: 280px;
position: relative;
top: 50px;
left: calc(50% - 140px);
cursor: pointer;
}
.futuristic-button:before
{
content:"";
height: 50px;
position:absolute;
z-index:-1;
box-shadow:0 0 5px rgba(0,0,0,0.8);
background: rgba(0,0,0,0.4);
top: 2px;
bottom:0;
left:10px;
right:10px;
border-radius: 100%;
}
.top, .bottom, .parallelogram-left, .parallelogram-right, .button-text {
width: 100%;
background: rgba(56,134,133,1);
}
.top, .bottom {
height: 20px;
position: relative;
z-index: 10;
transition: all .5s;
}
.top {
top: 0px;
left: calc(50% - 140px - 20px);
border-top-left-radius: 5px;
background: rgba(39,94,93,1);
background: -moz-linear-gradient(-45deg, rgba(39,94,93,1) 0%, rgba(56,134,133,1) 100%);
background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(39,94,93,1)), color-stop(100%, rgba(56,134,133,1)));
background: -webkit-linear-gradient(-45deg, rgba(39,94,93,1) 0%, rgba(56,134,133,1) 100%);
background: -o-linear-gradient(-45deg, rgba(39,94,93,1) 0%, rgba(56,134,133,1) 100%);
background: -ms-linear-gradient(-45deg, rgba(39,94,93,1) 0%, rgba(56,134,133,1) 100%);
background: linear-gradient(135deg, rgba(39,94,93,1) 0%, rgba(56,134,133,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#275e5d', endColorstr='#388685', GradientType=1 );
}
.bottom {
top: 10px;
left: calc(50% - 140px + 20px);
border-bottom-right-radius: 5px;
border-right: 1px solid rgba(39,94,93,1);
border-bottom: 1px solid rgba(39,94,93,1);
background: rgba(56,134,133,1);
background: -moz-linear-gradient(-45deg, rgba(56,134,133,1) 0%, rgba(39,94,93,1) 100%);
background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(56,134,133,1)), color-stop(100%, rgba(39,94,93,1)));
background: -webkit-linear-gradient(-45deg, rgba(56,134,133,1) 0%, rgba(39,94,93,1) 100%);
background: -o-linear-gradient(-45deg, rgba(56,134,133,1) 0%, rgba(39,94,93,1) 100%);
background: -ms-linear-gradient(-45deg, rgba(56,134,133,1) 0%, rgba(39,94,93,1) 100%);
background: linear-gradient(135deg, rgba(56,134,133,1) 0%, rgba(39,94,93,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#388685', endColorstr='#275e5d', GradientType=1 );
}
.parallelogram-left, .parallelogram-right {
transition: all .5s;
height: 30px;
position: absolute;
-webkit-transform: skew(40deg);
-moz-transform: skew(40deg);
-o-transform: skew(40deg);
}
.parallelogram-left {
top: 20px;
left: calc(50% - 140px - 6px);
border-bottom: 1px solid rgba(39,94,93,1);
border-left: 1px solid rgba(39,94,93,1);
}
.parallelogram-right {
top: 0px;
left: calc(50% - 140px + 7px);
border-right: 1px solid rgba(39,94,93,1);
}
.button-text {
color: white;
font-size: 24px;
font-family: 'Orbitron', sans-serif;
font-weight: 100;
position: absolute;
top: -14px;
background: transparent !important;
text-align: center;
left: calc(50% - 140px);
z-index: 11;
}
/* ====================================
FUTURISTIC BUTTON BORDER
==================================== */
.top::after {
content: "";
width: 307px;
height: 30px;
position: absolute;
top: -10px;
left: calc(50% - 140px - 10px);
border-top-left-radius: 5px;
border-top: 3px solid rgba(39,94,93,1);
border-left: 3px solid rgba(39,94,93,1);
}
.bottom::after {
content: "";
width: 307px;
height: 30px;
position: absolute;
top: 0px;
left: calc(50% - 140px - 17px);
border-bottom-right-radius: 5px;
border-bottom: 3px solid rgba(39,94,93,1);
border-right: 3px solid rgba(39,94,93,1);
}
.parallelogram-left::after {
content: "";
height: 40px;
position: absolute;
top: 2px;
left: calc(50% - 140px - 14px);
border-left: 3px solid rgba(39,94,93,1);
}
.parallelogram-right::after {
content: "";
height: 40px;
position: absolute;
top: -10px;
left: calc(50% + 140px + 10px );
border-right: 3px solid rgba(39,94,93,1);
}
/* ====================================
FUTURISTIC BUTTON ANIMATION
==================================== */
.top.active {
transition: all .5s;
left: -400%;
}
.bottom.active {
transition: all .5s;
left: +400%;
}
.parallelogram-left.active {
transition: all .5s;
left: calc(50% - 140px + 7px);
}
.parallelogram-right.active {
transition: all .5s;
left: calc(50% - 140px - 7px);
}
/* ====================================
TOGGLECLASSES
==================================== */
$('.futuristic-button').hover(function(){
$('.top').addClass('active');
$('.bottom').addClass('active');
$('.parallelogram-left').addClass('active');
$('.parallelogram-right').addClass('active');
},function(){
$('.top').removeClass('active');
$('.bottom').removeClass('active');
$('.parallelogram-left').removeClass('active');
$('.parallelogram-right').removeClass('active');
});
This Pen doesn't use any external CSS resources.