* {
    margin: 0;
    padding: 0;
}

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

.container {
    position: relative;
    width: 800px;
    height: 600px;
}

span {
    position: absolute;
    width: 800px;
    height: 600px;
    background: url(./xwz.jpg);
    background-size: cover;
    transition: 0.3s;
}
span:nth-child(1) {
    clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
    transition-delay: 0.9s;
}
span:nth-child(2) {
    clip-path: polygon(50% 0, 100% 0, 100% 50%, 50% 50%);
    transition-delay: 0.6s;
}
span:nth-child(3) {
    clip-path: polygon(0 49%, 50% 49%, 50% 100%, 0 100%);
    transition-delay: 0.3s;
}
span:nth-child(4) {
    clip-path: polygon(49% 49%, 100% 49%, 100% 100%, 50% 100%);
    transition-delay: 0;
}

.container:hover span:nth-child(1) {
    transform: translate(-10%, -30%) rotate(-30deg);
    transition-delay: 0s;
}
.container:hover span:nth-child(2) {
    transform: translate(30%, -10%) rotate(30deg);
    transition-delay: 0.3s;
}
.container:hover span:nth-child(3) {
    transform: translate(-15%, 35%) rotate(20deg);
    transition-delay: 0.6s;
}
.container:hover span:nth-child(4) {
    transform: translate(20%, 40%) rotate(-30deg);
    transition-delay: 0.9s;
}
