   const divElem = document.querySelector('div');

    let rotate360 = [
      { transform: 'rotate(360deg)' }
    ];

    let slowInfinite = {
      duration: 5000,
      iterations: Infinity
    }

    divElem.animate( rotate360, slowInfinite );

  </script>
</body>

</html>
