JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js"></script>
 <button onclick="lancer()">Lancer</button>

JavaScript

var s = Snap(800, 600)  
var ellipse = s.ellipse(200, 150, 100, 150).attr({
	fill: 'Navy'
})
function lancer() {
  ellipse.animate({ry:100}, 1000, function(){
    ellipse.animate({ry: 150}, 1000)
  })
}