Sets the duration that transitions between modes in this will take.
a leaflet
the new duration, in milliseconds