Hi! I'm Johannes Dachsel, a web designer and developer based near Heidelberg, Germany. This is my personal website. Get in touch

Johannes Dachsel

100 Buttons 016


button{
    outline: none;
    position: relative;
    top: 0;
    cursor: pointer;
    display: block;
    text-align: center;
    border: 1px solid #ff7ebf;
    border-radius: 10px;
    background-color: #ff7dbe;
    padding: 1.25em 2em;
    color: #FFF;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .2em;
    transition: all .3s ease;
}

button:before{
    content: "";
    position: absolute;
    z-index: -1;
    width: 0;
    height: 0;
    border-left: 0 solid transparent;
    border-right: 0 solid transparent;
    border-top: 0 solid #ff7ebf;
    left: 15%;
    top: 100%;
    transition: all .3s ease;
}

button:after{
    content: "";
    background: rgba(0,0,0,.2);
    border-radius: 50%;
    width: 100%;
    height: 5px;
    position: absolute;
    bottom: -10px;
    opacity: 0;
    left: 0;
    box-shadow: 0 0 7px rgba(0,0,0,.2);
    transition: all .3s ease;
}

button:focus,
button:hover{
    top: -10px;
}

button:hover:after,
button:active:after{
    opacity: 1;
    bottom: -30px;
}

button:hover:before,
button:active:before{
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 13px;
}