Plotly Animation Auto Loop


I am trying to create an auto-loop functionality for the animation slider.

To achieve this, I need to know when the slider reaches the end so that I can add an auto-click functionality to the play button.

Is there anyway I can detect when the slider reaches the end or return the slider value dynamically?

Thank you

1 Like

Found the answer! :slight_smile:

Here’s the code if anyone is interested in using it :slight_smile:

myPlot.on(‘plotly_sliderchange’, function(e){