JSFiddle - React, Tailwind, and code Playground
by bestmomo
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<button onclick="lancer()">Lancer</button>
<svg height="100" width="300">
<rect x="50" y="10" width="80" height="40" fill="red"/>
</svg>
JavaScript
function lancer() {
TweenMax.to('rect', 2, { rotation: 90, ease: Power2. easeInOut })
}