I\'ve created 2 custom buttons (icons) for my Plotly.js modeBar: play and pause.
I want to switch/toggle between this icons and I\'m able to do it, however I\'m not h