<div class="box"></div>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Exo", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(to bottom, #0b0a27, #31304c 50%);
}

.box {
  width: 80vh;
  height: 80vh;
  background: #f36
    url("https://res.cloudinary.com/dtvy1jqj0/image/upload/v1568046689/misc/blueForest.jpg")
    no-repeat center;
  cursor: pointer;
  clip-path: polygon(
    0% 20%,
    60% 20%,
    60% 0%,
    100% 50%,
    60% 100%,
    60% 80%,
    0% 80%
  );

  transition: clip-path 2s linear;
  animation: bg 20s linear infinite;
}

.box:hover {
  clip-path: polygon(
    40% 0%,
    40% 20%,
    100% 20%,
    100% 80%,
    40% 80%,
    40% 100%,
    0% 50%
  );
}

@keyframes bg {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1056px center;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.