Style transitionDuration Property
❮ Style Object Speed up the transition effect: Try it Yourself " The transitionDuration property sets or returns how many seconds (s) or milliseconds (ms) a transition effect takes to complete. The numbers in the table specify the first browser version that fully supports the property.
https://www.w3schools.com/jsref/prop_style_transitionduration.asp