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 042


button{
    outline: none;
    cursor: pointer;
    display: block;
    height: 80px;
    width: 160px;
    position: relative;
    text-align: center;
    border: none;
    background-color: transparent;
    color: #FFF;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .2em;
    transition: all .3s ease;
}

button:before,
button:after{
    position: absolute;
    z-index: -1;
    content: "";
    left: 80px;
    top: 0;
    width: 80px;
    height: 130px;
    background: #ff6e6e;
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    transition: all .3s ease;
}

button:after{
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

button:focus:before,
button:hover:before,
button:focus:after,
button:hover:after{         
    background-color: #f85e5e;  
}