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 034


button{
    outline: none;
    position: relative;
    cursor: pointer;
    display: block;
    text-align: center;
    border: none;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    color: #fff;
    padding: 1em 2em;
    font-family: serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .3em;
    text-transform: uppercase;
    transition: all .4s ease;
}

button:before,
button:after{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    transition: all .4s ease;
}

button:before{
    border-top: 1px solid #edaeff;
    border-left: 1px solid #edaeff;
    max-width: 0;
    max-height: 0;
    left: -1px;
    top: -1px;
}

button:after{
    border-bottom: 1px solid #edaeff;
    border-right: 1px solid #edaeff;
    max-width: 0;
    max-height: 0;
    bottom: -1px;
    right: -1px;
}

button:hover{
    border-color: transparent;
    color: #edaeff;
}

button:focus:before,
button:hover:before,
button:focus:after,
button:hover:after{
    max-width: 100%;
    max-height: 100%;
}