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 :
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.