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 002


.button-container{
    perspective: 500px;
}

button{
    position: relative;
    cursor: pointer;
    display: block;
    background-color: #24ad6d;
    border: none;
    color: #FFF;
    padding: 1.5em 3em;
    font-family:  monospace;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: all .3s ease;
    transform-style: preserve-3d;
    transform: rotateX(18deg);
}

button:after{
    box-sizing: border-box;
    content: "";
    background-color: #455da4;
    width: 100%;
    height: 60%;
    position: absolute;
    left: 0;
    top: 100%;
    transform-origin: 0% 0%;
    transform: rotateX(-90deg);
    z-index: -1;
}

button:hover{
    transform: rotateX(0deg);
    background-color: #20c076;
}