JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
<div id="element"></div>
CSS
#element { background:red; width:100px; height:100px; position:absolute;}
JavaScript
var el = document.getElementById("element");
var tl = new TimelineMax();
tl.to(el, 1, {alpha:0, repeatDelay:1, repeat:-1, yoyo:true})
tl.play();