Black Lives Matter. Please consider donating to Black Girls Code today.

Animate function and restyle performance

In order to update my data for each iteration, I was using restyle and a timeout function, here is the code Etienne posted a while ago : http://codepen.io/etpinard/pen/kXGYyQ
It works but with a lot of data, it may be slow.
I saw that the animation function for plotly is available since few months, I wonder if I can reproduce the same animation with better performance. If someone has some simple example, I would be glad to see it.