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 041


button{
    outline: none;
    cursor: pointer;
    display: block;
    height: 60px;
    width: 120px;
    position: relative;
    text-align: center;
    border: none;
    background-color: #88d3a7;
    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{
    content: "";
    position: absolute;
    left: 0;
    top: -35px;
    width: 0;
    height: 0;
    border-left: 60px solid #5aaa8b;
    border-right: 60px solid #5aaa8b;
    border-bottom: 35px solid #88d3a7;
    background-color: #88d3a7;
    transition: all .3s ease;
}

button:after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -35px;
    width: 0;
    height: 0;
    border-left: 60px solid #5aaa8b;
    border-right: 60px solid #5aaa8b;
    border-top: 35px solid #88d3a7;
    background-color: #88d3a7;
    transition: all .3s ease;
}

button:focus,
button:hover{
    background-color: #8ef4bf;
}

button:focus:before,
button:hover:before{
    border-bottom-color: #8ef4bf;
}

button:focus:after,
button:hover:after{         
    border-top-color: #8ef4bf;  
}