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

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

body {
  width: 100vw;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: "Exo", Arial, sans-serif;
  background-color: #151522;

  gap: 10px;
}

.poker {
  height: 40vmin;
  width: calc(40vmin / 1.4);
  background-image: url(https://assets.codepen.io/2722301/cards.jpg);
  background-size: cover;
  animation: poker 52s steps(51, end) infinite;
}

@keyframes poker {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.