Slider for map marker+lines plotting

I do a plotly.offline.plot(figure, filename="test.html), with figure the dict below (shorted):

{
  'layout': {
    'title': 'Energy Flow',
    'showlegend': True,
    'width': '800',
    'height': '600',

  ## etc ..  
  ## general layout
  },
  
  'sliders': [{
    'args': ['slider.value', {
      'duration': 400,
      'ease': 'cubic-in-out'
    }],
    'plotlycommand': 'animate',
    'initialValue': '2010',
    'steps': [{
      'args': [
        ['2010'], {
          'frame': {
            'duration': 70,
            'redraw': True
          },
          'mode': 'immediate',
          'transition': {
            'duration': 0
          }
        }
      ],
      'label': '2010',
      'method': 'animate'
    }, {
      'args': [
        ['2011'], {
          'frame': {
            'duration': 70,
            'redraw': True
          },
          'mode': 'immediate',
          'transition': {
            'duration': 0
          }
        }
      ],
      'label': '2011',
      'method': 'animate'
    }, {
      'args': [
        ['2012'], {
          'frame': {
            'duration': 70,
            'redraw': True
          },
          'mode': 'immediate',
          'transition': {
            'duration': 0
          }
        }
      ],
      'label': '2012',
      'method': 'animate'
    }, {
      'args': [
        ['2013'], {
          'frame': {
            'duration': 70,
            'redraw': True
          },
          'mode': 'immediate',
          'transition': {
            'duration': 0
          }
        }
      ],
      'label': '2013',
      'method': 'animate'
    },
    {}
    ## etc ..
    ## slider data for each frame
  ],
    
  'data': [
  ## data of the first frame
  {
    'type': 'scattergeo',
    'lon': [101.9199, 99.7129],
    'lat': [30.1904, 38.166],
    'hoverinfo': 'text',
    'text': 'Sichuan>Gansu: 0.19 by gas_transmission ',
    'mode': 'lines',
    'line': {
      'width': 1.4501452310666547,
      'color': '#8465A9'
    },
    'legendgroup': 'gas_transmission',
    'name': 'gas_transmission:Sichuan',
    'opacity': 0.6
  },
  ## a line dict
  {
    'type': 'scattergeo',
    'lon': [99.7129],
    'lat': [38.166],
    'hoverinfo': 'text',
    'text': 'Gansu: 0.02 of prod (gas)',
    'mode': 'markers',
    'marker': {
      'symbol': 'dot',
      'opacity': 0.6,
      'size': 1.0473837085333322,
      'color': 'orange'
    },
  ## and a marker dict  
  ## etc ..
    ],
  'frames': [
  [],
  [],
  ## etc ..
  ## all the frames data
  ]
}