Plotly animate question

I’m trying to implement an animation from plotly. I’ve been trying to use the plugin from the link below.

I understand that how this plugin works is that you have to feed it 3 parameters, data, layout and config. However, is it possible use the other functions from the plotly API for Javascript? I’m reading the focus from plotly, i.e. here and I see that we need to create another function and use the plotly.addFrames. Can I do this somehow with the Grafana plugin?