.container{
    width: 250px;
    height: 300px;
    background-color: rgb(141, 158, 229);
    margin: auto;
    margin-top: 100px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(15, 80, 220);
    position: relative;
    overflow: hidden;
}
.card{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(183, 183, 248);
    transform: skew(30deg) translate(100%);
    opacity: 0.7;
    box-shadow: 0 0 10px blue;
    transition: all 0.5s;
}

.card::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(183, 183, 248);
    transform: skew(-30deg) translate(100%);
    opacity: 0.7;
    box-shadow: 0 0 10px blue;
    transition: all 0.5s;
}

.container::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(183, 183, 248);
    transform: skew(30deg) translate(85%);
    opacity: 0.6;
    transition: all 0.5s;
}

.container::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(183, 183, 248);
    transform: skew(-30deg) translate(85%);
    opacity: 0.6;
    transition: all 0.5s;
}

.card:hover::before{
    transform: translatex(90%) skew(30deg);
}
.card:hover::after{
    transform: translatex(90%) skew(-30deg);
}

.container:hover::before{
    transform: translatex(80%) skew(30deg);
}
.container:hover::after{
    transform: translatex(90%) skew(-30deg);
}