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 015


button{
    outline: none;
    position: relative;
    cursor: pointer;
    display: block;
    text-align: center;
    border: 1px solid #FFF;
    background-color: transparent;
    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;
    overflow: hidden;
}

button:after{
    content: "";
    background-color: #FFF;
    position: absolute;
    z-index: -1;
    width: 100%;
    max-width: 0;
    height: 300%;
    transition: all .3s ease;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) rotate(-45deg);
}

button:focus,
button:hover{
    color: #807cec;
}

button:focus:after,
button:hover:after{
    max-width: 75%;
}