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 029


button{
    outline: none;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    text-align: center;
    border: 1px solid #d44e25;
    background-color: transparent;
    color: #d44e25;
    padding: 1em 2em;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: all .2s ease;
}

button:after{
    content: '';
    display: none;
    height: 7px;
    width: 100%;
    background-image: -webkit-repeating-linear-gradient(45deg, #d44e25, #d44e25 1px, transparent 2px, transparent 5px);
    background-image: repeating-linear-gradient(45deg, #d44e25, #d44e25 1px, transparent 2px, transparent 5px);
    border-top: 1px solid #d44e25;
    position: absolute;
    left: 0;
    bottom: 0;
    background-size: 7px 7px;
}

button:focus,
button:hover{
    padding-bottom: 20px;
}

button:focus:after,
button:hover:after{
    display: block;
    -webkit-animation: stripe-slide 12s infinite linear forwards;
    animation: stripe-slide 12s infinite linear forwards;
}

@-webkit-keyframes stripe-slide {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 0;
    }
}
@keyframes stripe-slide {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 0;
    }
}