JSFiddle - React, Tailwind, and code Playground

by Alex Str

HTML

<div class="wrapper"> <a class="btn" href="#"><span class="btn-text">Lorem ipsum dolor sit amet</span></a>

</div>
<div class="wrapper">
    <button type="submit" class="btn"><span class="btn-text">Lorem ipsum dolor sit amet</span>

    </button>
</div>

CSS

* {
    margin: 0;
    padding: 0;
}
.wrapper {
    text-align: center;
    padding: 20px;
}
.btn {
    font-family: arial;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    border: none;
    color: #fff;
    position: relative;
    background-image: -webkit-linear-gradient(top, #64c6f1 1%, #5eb8e1 25%, #58abd2 50%, #4d94b8 75%, #4a8db0 100%);
    background-image: -moz-linear-gradient(top, #64c6f1 1%, #5eb8e1 25%, #58abd2 50%, #4d94b8 75%, #4a8db0 100%);
    background-image: -o-linear-gradient(top, #64c6f1 1%, #5eb8e1 25%, #58abd2 50%, #4d94b8 75%, #4a8db0 100%);
    background-image: linear-gradient(to bottom, #64c6f1 1%, #5eb8e1 25%, #58abd2 50%, #4d94b8 75%, #4a8db0 100%);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px 3px 14px 14px/3px 3px 8px 8px;
    border-radius: 3px 3px 14px 14px/3px 3px 8px 8px;
    -webkit-box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    -moz-box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.5);
    text-shadow: 1px 1px 1px #3a718c;
    -webkit-transition: padding-top, 0.3s;
    -moz-transition: padding-top, 0.3s;
    -o-transition: padding-top, 0.3s;
    transition: padding-top, 0.3s;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.btn:before {
    content:' ';
    display: block;
    position: absolute;
    background: transparent;
    height: 0;
    bottom: 0;
    left: 14px;
    right: 14px;
    -webkit-box-shadow: 0px 0px 12px 6px rgba(55, 95, 111, 0.5);
    -moz-box-shadow: 0px 0px 12px 6px rgba(55, 95, 111, 0.5);
    box-shadow: 0px 0px 12px 6px rgba(55, 95, 111, 0.5);
    z-index: -1;
}
.btn:hover, .btn:active {
    background-image: -webkit-linear-gradient(top, #7bcff3 1%, #73c1e5 25%, #6cb5d7 50%, #5f9fbf 75%, #5a99ba 100%);
    background-image: -moz-linear-gradient(top, #7bcff3 1%, #73c1e5 25%, #6cb5d7 50%, #5f9fbf 75%, #5a99ba 100%);
   ...