Fabric.js - Fadeout an object and remove from canvas
<p>How do you fade out an object on canvas and then remove that object?. </p>

<p>Also, I'm getting <code>Uncaught TypeError: activeObj.animate is not a function</code>, which is really odd as I can see in my code editor I have the animate method and its parameters available. Animate should be available to any object on canvas as far as I can see.</p>

<p>Here's what I have so far:</p>

<pre><code>var activeObj = canvas.getActiveObject();

activeObj.setOpacity(1);
activeObj.animate('opacity', '0', {
  onChange: canvas.renderAll.bind(canvas) });
};
canvas.remove(activeObj);
</code></pre>