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 014


button{
    outline: none;
    position: relative;
    cursor: pointer;
    display: block;
    text-align: center;
    border: none;
    background-color: transparent;
    padding: 1.25em 2em;
    color: #FFF;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .2em;
}

button:before,
button:after{
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    transform: skew(-7deg);
    transition: all .1s ease;
}

button:before{
    left: -3px;
    top: 3px;
    background-color: rgba(47, 168, 220, 0.59);
}

button:after{
    left: 3px;
    top: -3px;
    background-color: rgba(173, 28, 201, 0.59);
}

button:focus:after,
button:focus:before,
button:hover:after,
button:hover:before{
    top: 0;
    left: 0;
}