Website fancy buttons
Source : https://codepen.io/Mohsen-Khakbiz/pen/RaqaOG
by Mohamed Mulla
HTML
<div class="wrapper">
<a href="#" class="fancy-button bg-gradient1"><span><i class="fa fa-wheelchair-alt"></i>Follow Me</span></a>
<a href="#" class="fancy-button bg-gradient2"><span><i class="fa fa-envelope"></i>Messages</span></a>
</div><!-- /.wrapper -->
<div class="wrapper">
<a href="#" class="fancy-button pop-onhover bg-gradient1"><span>Post A Comment</span></a>
<a href="#" class="fancy-button pop-onhover bg-gradient3"><span>Share Channel</span></a>
</div><!-- /.wrapper -->
CSS
/* Mixins */
/* bg shortcodes */
.bg-gradient1 span,
.bg-gradient1:before {
background: #52A0FD;
background: -moz-linear-gradient(left, #52A0FD 0%, #00e2fa 80%, #00e2fa 100%);
background: -webkit-linear-gradient(left, #52A0FD 0%, #00e2fa 80%, #00e2fa 100%);
background: linear-gradient(to right, #52A0FD 0%, #00e2fa 80%, #00e2fa 100%);
}
.bg-gradient2 span,
.bg-gradient2:before {
background: #44ea76;
background: -moz-linear-gradient(left, #44ea76 0%, #39fad7 80%, #39fad7 100%);
background: -webkit-linear-gradient(left, #44ea76 0%, #39fad7 80%, #39fad7 100%);
background: linear-gradient(to right, #44ea76 0%, #39fad7 80%, #39fad7 100%);
}
.bg-gradient3 span,
.bg-gradient3:before {
background: #fa6c9f;
background: -moz-linear-gradient(left, #fa6c9f 0%, #ffe140 80%, #ffe140 100%);
background: -webkit-linear-gradient(left, #fa6c9f 0%, #ffe140 80%, #ffe140 100%);
background: linear-gradient(to right, #fa6c9f 0%, #ffe140 80%, #ffe140 100%);
}
/* General */
.wrapper {
margin: 5% auto;
text-align: center;
}
a {
text-decoration: none;
}
a:hover, a:focus, a:active {
text-decoration: none;
}
/* fancy Button */
.fancy-button {
display: inline-block;
margin: 30px;
font-family: 'Montserrat', Helvetica, Arial, sans-serif;
font-size: 17px;
letter-spacing: 0.03em;
text-transform: uppercase;
color: #ffffff;
position: relative;
}
.fancy-button:before {
content: '';
display: inline-block;
height: 40px;
position: absolute;
bottom: -5px;
left: 30px;
right: 30px;
z-index: -1;
border-radius: 30em;
filter: blur(20px) brightness(0.95);
transform-style: preserve-3d;
transition: all 0.3s ease-out;
}
.fancy-button i {
margin-top: -1px;
margin-right: 20px;
font-size: 1.265em;
vertical-align: middle;
}
.fancy-button span {
display: inline-block;
padding: 18px 60px;
border-radius: 50em;
position: relative;
z-index: 2;
will-change: transform, filter;
transform-style: preserve-3d;
transition: all...