<a href="#" class="anima">
  <img src="https://cyberarena.gg/wp-content/uploads/2020/07/GamersFav.png">
</a>
.anima {
  display: inline-block;
  position: absolute;
  top: 20px;
  left: 10%;
  transition:.4s;
}
.anima:hover img {
  animation: move 2s;
}
$('.anima').hover(function(){
  $(this).css('transform', 'translateX(100px)');
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js