6 Shadow Button

a button with 6 box shadows and a press animation

by James Doyle

HTML

<div class="button"><a href="#">Button</a></div>

CSS

body {
    margin: 20px;
    background: #121212;
}

div.button a {
    display: block;
    padding: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 0px 1px hsla(190,50%,30%,1);
}

div.button {
    float:left;
    margin: 0 0 0 0;
    width: 150px;
    height: 45px;
    text-align: center;
    border-radius: 4px;
    box-shadow: inset 0px 1px hsla(190,50%,80%,1),
        inset 0px -1px hsla(190,50%,80%,0.8),
        inset 0px 10px 20px hsla(190,50%,90%,0.3),
        inset 0px -10px 20px hsla(190,50%,10%,0.4),
        0px 5px hsla(190,50%,25%,1),
        0px 2px 20px black;
    background: hsla(190,50%,50%,1);
    -webkit-transition: margin 0.1s linear, box-shadow 0.1s linear;
}

div.button:active {
    margin: 5px 0 0 0;
    box-shadow: inset 0px 1px hsla(190,50%,80%,1),
        inset 0px -1px hsla(190,50%,80%,0.8),
        inset 0px 10px 20px hsla(190,50%,90%,0.3),
        inset 0px -10px 20px hsla(190,50%,10%,0.4),
        0px 1px hsla(190,50%,25%,1),
        0px 2px 20px black;
}