body {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #2196f3;
}

a {
    position: relative;
    padding: 20px;
    color: #fff;
    font-size: 20px;
    font-family: sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 10px;
    transition: 0.5s;
}

a:hover {
    background: #2196f3;
    box-shadow: -30px 30px 50px rgba(0, 0, 0, 0.4);
    transform: rotate(-30deg) skew(25deg);
}

a:before,
a:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: #ffffff;
    pointer-events: none;
    transform-style: initial;
    transition-property: width, opacity, transform, box-shadow;
    transition: 0.5s;
}

a:before {
    top: 0;
    left: 0;
}

a:after {
    top: 0;
    right: 0;
}

a:hover:before {
    width: 100%;
    opacity: 0.1;
    transform: translate(5px, -5px);
    box-shadow: +2px 2px 2px rgba(0, 0, 0, 0.1);
    transition-delay: 0s, 0.5s, 1s, 1.5s;
}

a:hover:after {
    width: 100%;
    opacity: 0.1;
    transform: translate(10px, -10px);
    box-shadow: +2px 2px 2px rgba(0, 0, 0, 0.1);
    transition-delay: 0s, 0.5s, 1s, 1.5s;
}
