body {
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

ul {
    position: relative;
    transform: skewY(-15deg);
    padding: 0;
    margin: 0;
}

li {
    position: relative;
    list-style: none;
    width: 200px;
    padding: 15px;
    background: #3e3f46;
    z-index: calc(1 * var(--i));
    transition: 0.5s;
    margin: 8px 0;
}

li:hover {
    background: #996fae;
    transform: translateX(-50px);
}

li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

/* ICON BOX */
li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    content: attr(data-icon);
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 100%;
    background: #2e3133;
    transform-origin: right;
    transform: skewY(54deg);
    transition: 0.5s;
}

/* HOVER effect for ICON */
li:hover::before {
    background: #7f5c99;
    color: #fff;
    transform: skewY(54deg) translateX(-8px);
}
