docstr: Sets the duration of the slider transition
  
  The 'duration' property is a number and may be specified as:
    - An int or float in the interval [0, inf]
  
  Returns
  -------
  int|float
code: def duration(self):
      """
      Sets the duration of the slider transition
  
      The 'duration' property is a number and may be specified as:
        - An int or float in the interval [0, inf]
  
      Returns
      -------
      int|float
      """
      return self["duration"]
  
file_path: catboost/contrib/python/plotly/py3/plotly/graph_objs/layout/slider/_transition.py
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 1 for calling the Transition obj's underlying member method code with example usage: obj.duration() and returns: self