<div></div>
div {
  width: 100px;
  height: 100px;
  background-color: green;
}
let animation = anime({
  targets: 'div',
  translateX: 100,
  borderRadius: 50,
  duration: 2000,
  easing: 'linear',
  direction: 'alternate'
});    

   

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/animejs/2.2.0/anime.min.js