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">
<circle cx="40" cy="40" r="30" fill="red"/>
<circle cx="120" cy="40" r="30" fill="blue"/>
</svg>
JavaScript
function lancer() {
TweenMax.staggerTo('circle', 2, { x: 100 }, .2)
}