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 066


button{
    outline: none;
    cursor: pointer;
    display: block;
    position: relative;
    text-align: center;
    padding: .25em .5em;
    border: none;
    color: #FFF;
    background-color: #000;
    font-family: serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
    transition: all .4s ease;
}

button:before,
button:after{
    content: "";
    width: 120%;
    height: 1px;
    background-color: #FFF;
    position: absolute;
    z-index: -1;
    left: -10%;
    transition: all .3s ease;
}

button:before{top: -10px;}
button:after{bottom: -10px;}

button:hover:before,
button:focus:before{
    top: 50%;
    transform: translate(0,-50%);
}

button:hover:after,
button:focus:after{
    bottom: 50%;
    transform: translate(0,-50%);
}