JSFiddle - React, Tailwind, and code Playground

HTML

<div class="test">
  <div class="test__text-top">Я — японский национальный лидер.</div>
  <img src="https://www.freepnglogos.com/uploads/mario-png/mario-png-super-smash-bros-full-roster-leak-wiiu-10.png" alt="" class="test__image">
  <div class="test__text-bottom">Я — японский национальный лидер.</div>
</div>

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Russo+One&display=swap" rel="stylesheet">

CSS

body {
  background: #333;
  font-family: 'Russo One', sans-serif;
  overflow-x: hidden;
}

.test {
  position: relative;
  height: 650px;
  width: 100%;
  color: #fff;
  font-size: 50px;
  text-transform: uppercase;
}

.test > * {
  position: absolute;
}

.test__text-top {
  z-index: 3;
  bottom: 50%;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}

.test__image {
  z-index: 2;
  width: 300px;
  animation: mario-wiggle 2s infinite alternate ease-in-out;
}

.test__text-bottom {
  z-index: 1;
  bottom: 50%;
  -webkit-text-stroke: 1px #fff;
}


@keyframes mario-wiggle {
  0% {
    transform: none;
  }
  100% {
    transform: translateX(100%);
  }
}