JSFiddle - React, Tailwind, and code Playground

HTML

<img src="https://romankozhiev.ru/wp-content/uploads/01-2.jpg" alt="">

CSS

img {
    width: 100%;
    height: 100%;
    margin-left: 0px;
    margin-top: -15px;
    animation: kenburns 12s linear infinite alternate;
    animation-name: kenburns;
    animation-duration: 12s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: none;
    animation-play-state: running;
}

@keyframes kenburns {
  0% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
  }
}