Cytoscape.js: cose layout with animation
<p>I am trying to animate the change between layouts of a Cytoscape.js graph.</p>

<p>When switching from cose to grid, the change is animated. When switching from grid to cose, only the end position is shown without any animation.</p>

<p>I use a simple test scenario starting with a small graph in grid layout and this code to switch layouts:</p>

<pre><code>...
function changeLayout(type){
  var options = {
    name: type,
    animate: true
  };
  cy.layout(options);
}
...
&lt;div onclick="changeLayout('cose')"&gt;to cose&lt;/div&gt;
&lt;div onclick="changeLayout('grid')"&gt;to grid&lt;/div&gt;
</code></pre>

<p>I also tried the other options listed here:
<a href="http://js.cytoscape.org/#layouts/cose" rel="nofollow">http://js.cytoscape.org/#layouts/cose</a>
but I am not able to animate from grid to cose.</p>

<p>What am I doing wrong?</p>