title: How to run a function on button click?
body: <p>How do I run this function If I click on the button?</p>
  
  <pre><code>&lt;button id="button"&gt;Button&lt;/button&gt;
  
  var tween = new TWEEN.Tween(mesh.scale).to({ x: 1, y: 0.05, z:2 }, 1000).start();
  
  
  tween.easing(TWEEN.Easing.Elastic.InOut);
  tween.repeat(Infinity);
  tween.yoyo(true);
  </code></pre>